chgserver: use ui.debug() to print server debug messages
authorYuya Nishihara <yuya@tcha.org>
Sat, 21 May 2016 18:15:20 +0900
changeset 29595 2c4dc91c4c54
parent 29594 e417664a3339
child 29596 71c197d82b7e
chgserver: use ui.debug() to print server debug messages commandserver.log() is noop at this time because no client connection is established.
hgext/chgserver.py
--- 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