chgserver: use ui.debug() to print server debug messages
commandserver.log() is noop at this time because no client connection is
established.
--- a/hgext/chgserver.py Sun Jun 05 12:18:20 2016 +0900
+++ b/hgext/chgserver.py Sat May 21 18:15:20 2016 +0900
@@ -582,10 +582,10 @@
def shouldexit(self):
if not self.issocketowner():
- _log('%s is not owned, exiting.\n' % self.address)
+ self.ui.debug('%s is not owned, exiting.\n' % self.address)
return True
if time.time() - self.lastactive > self.idletimeout:
- _log('being idle too long. exiting.\n')
+ self.ui.debug('being idle too long. exiting.\n')
return True
return False