remotefilelog: fix logging in retry decorator
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 10:57:38 -0500
changeset 41250 8a6995513d9a
parent 41249 c891a11ffe27
child 41251 beb0d944a99b
remotefilelog: fix logging in retry decorator This still fails with an error about no exception being available to re-raise, but so it goes. Differential Revision: https://phab.mercurial-scm.org/D5600
hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py	Wed Jan 16 10:56:15 2019 -0500
+++ b/hgext/remotefilelog/basestore.py	Wed Jan 16 10:57:38 2019 -0500
@@ -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