caches: issue both debug and blackbox log message
This increase the odd someone looking for issue will find them.
--- a/hgext3rd/evolve/depthcache.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/depthcache.py Fri Sep 14 10:39:01 2018 +0200
@@ -207,4 +207,5 @@
cachefile.close()
self._ondiskkey = self._cachekey
except (IOError, OSError) as exc:
+ repo.ui.log('depthcache', 'could not write update %s\n' % exc)
repo.ui.debug('depthcache: could not write update %s\n' % exc)
--- a/hgext3rd/evolve/firstmergecache.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/firstmergecache.py Fri Sep 14 10:39:01 2018 +0200
@@ -144,4 +144,5 @@
cachefile.close()
self._ondiskkey = self._cachekey
except (IOError, OSError) as exc:
+ repo.ui.log('firstmergecache', 'could not write update %s\n' % exc)
repo.ui.debug('firstmergecache: could not write update %s\n' % exc)
--- a/hgext3rd/evolve/obscache.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/obscache.py Fri Sep 14 10:39:01 2018 +0200
@@ -412,6 +412,7 @@
cachefile.close()
self._ondiskkey = self._cachekey
except (IOError, OSError) as exc:
+ repo.ui.log('obscache', 'could not write update %s\n' % exc)
repo.ui.debug('obscache: could not write update %s\n' % exc)
def load(self, repo):
--- a/hgext3rd/evolve/obsdiscovery.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py Fri Sep 14 10:39:01 2018 +0200
@@ -621,6 +621,7 @@
del self._con
self._new.clear()
repo.ui.log('evoext-cache', 'error while saving new data: %s' % exc)
+ repo.ui.debug('evoext-cache: error while saving new data: %s' % exc)
def _trysave(self, repo):
if self._con is None:
--- a/hgext3rd/evolve/stablerangecache.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/stablerangecache.py Fri Sep 14 10:39:01 2018 +0200
@@ -275,6 +275,7 @@
del self._con
self._unsavedsubranges.clear()
repo.ui.log('evoext-cache', 'error while saving new data: %s' % exc)
+ repo.ui.debug('evoext-cache: error while saving new data: %s' % exc)
def _trysave(self, repo):
repo = repo.unfiltered()
--- a/hgext3rd/evolve/stablesort.py Thu Sep 13 19:46:05 2018 +0200
+++ b/hgext3rd/evolve/stablesort.py Fri Sep 14 10:39:01 2018 +0200
@@ -652,6 +652,7 @@
cachefile.close()
self._ondiskkey = self._cachekey
except (IOError, OSError) as exc:
+ repo.ui.log('stablesortcache', 'could not write update %s\n' % exc)
repo.ui.debug('stablesortcache: could not write update %s\n' % exc)
@eh.reposetup