Mercurial > hg
diff mercurial/chgserver.py @ 40828:25e9089c7686
commandserver: turn server debug messages into logs
They were ui.debug() just because commandserver.log() was noop if no client
connected.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Nov 2018 19:55:53 +0900 |
parents | eaabcb689747 |
children | e7110f44ee2d |
line wrap: on
line diff
--- a/mercurial/chgserver.py Sun Nov 18 19:47:04 2018 +0900 +++ b/mercurial/chgserver.py Sun Nov 18 19:55:53 2018 +0900 @@ -606,10 +606,11 @@ def shouldexit(self): if not self._issocketowner(): - self.ui.debug('%s is not owned, exiting.\n' % self._realaddress) + self.ui.log(b'chgserver', b'%s is not owned, exiting.\n', + self._realaddress) return True if time.time() - self._lastactive > self._idletimeout: - self.ui.debug('being idle too long. exiting.\n') + self.ui.log(b'chgserver', b'being idle too long. exiting.\n') return True return False