Mercurial > public > mercurial-scm > hg
diff hgext/logtoprocess.py @ 40760:ffd574c144d2
ui: pass in formatted message to logger.log()
This makes sure that all logger instances will handle the message arguments
properly.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 11 Nov 2018 19:35:33 +0900 |
parents | 55b053af7196 |
children | 691c68bc1222 |
line wrap: on
line diff
--- a/hgext/logtoprocess.py Sun Nov 11 17:34:46 2018 +0900 +++ b/hgext/logtoprocess.py Sun Nov 11 19:35:33 2018 +0900 @@ -66,7 +66,7 @@ env = { b'EVENT': event, b'HGPID': os.getpid(), - b'MSG1': msg[0] % msg[1:], + b'MSG1': msg, } # keyword arguments get prefixed with OPT_ and uppercased env.update((b'OPT_%s' % key.upper(), value)