D5600: remotefilelog: fix logging in retry decorator

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 16 12:21:19 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8a6995513d9a: remotefilelog: fix logging in retry decorator (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5600?vs=13260&id=13280

REVISION DETAIL
  https://phab.mercurial-scm.org/D5600

AFFECTED FILES
  hgext/remotefilelog/basestore.py

CHANGE DETAILS

diff --git a/hgext/remotefilelog/basestore.py b/hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py
+++ b/hgext/remotefilelog/basestore.py
@@ -420,6 +420,7 @@
                 except KeyError:
                     pass
             # retries exhausted
-            retrylog('retries exhausted in %s, raising KeyError\n' % funcname)
+            retrylog('retries exhausted in %s, raising KeyError\n' %
+                     pycompat.sysbytes(funcname))
             raise
         return wrapped



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list