changeset 4109:d562316c548f stable

caches: issue both debug and blackbox log message This increase the odd someone looking for issue will find them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 14 Sep 2018 10:39:01 +0200
parents f56b58db0c06
children b3b861a7f6f7 8e79671ba1fd c6362c4abd69
files hgext3rd/evolve/depthcache.py hgext3rd/evolve/firstmergecache.py hgext3rd/evolve/obscache.py hgext3rd/evolve/obsdiscovery.py hgext3rd/evolve/stablerangecache.py hgext3rd/evolve/stablesort.py
diffstat 6 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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