##// END OF EJS Templates
ui: install logger that sends debug.extensions messages to stderr...
Yuya Nishihara -
r41030:ab92e211 default
parent child Browse files
Show More
@@ -30,6 +30,7 b' from . import ('
30 30 encoding,
31 31 error,
32 32 formatter,
33 loggingutil,
33 34 progress,
34 35 pycompat,
35 36 rcutil,
@@ -490,6 +491,14 b' class ui(object):'
490 491 self._trustusers.update(self.configlist('trusted', 'users'))
491 492 self._trustgroups.update(self.configlist('trusted', 'groups'))
492 493
494 if section in (None, b'devel', b'ui') and self.debugflag:
495 tracked = set()
496 if self.configbool(b'devel', b'debug.extensions'):
497 tracked.add(b'extension')
498 if tracked:
499 logger = loggingutil.fileobjectlogger(self._ferr, tracked)
500 self.setlogger(b'debug', logger)
501
493 502 def backupconfig(self, section, item):
494 503 return (self._ocfg.backup(section, item),
495 504 self._tcfg.backup(section, item),
General Comments 0
You need to be logged in to leave comments. Login now