Mercurial > hg
diff mercurial/commandserver.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 | d23fd01cc115 |
children | e7110f44ee2d |
line wrap: on
line diff
--- a/mercurial/commandserver.py Sun Nov 18 19:47:04 2018 +0900 +++ b/mercurial/commandserver.py Sun Nov 18 19:55:53 2018 +0900 @@ -573,7 +573,8 @@ pid = os.fork() if pid: try: - self.ui.debug('forked worker process (pid=%d)\n' % pid) + self.ui.log(b'cmdserver', + b'forked worker process (pid=%d)\n', pid) self._workerpids.add(pid) h.newconnection() finally: @@ -610,7 +611,7 @@ if pid == 0: # no waitable child processes return - self.ui.debug('worker process exited (pid=%d)\n' % pid) + self.ui.log(b'cmdserver', b'worker process exited (pid=%d)\n', pid) self._workerpids.discard(pid) def _runworker(self, conn):