Patchwork D5600: remotefilelog: fix logging in retry decorator

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:21 p.m.
Message ID <9c26601b0448fdecadf833daee17ecf0@localhost.localdomain>
Download mbox | patch
Permalink /patch/37819/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:21 p.m.
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




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

Patch

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