Fix debug logging in some (weird) cases.

This commit is contained in:
Valentin Lorentz 2013-02-07 18:34:29 +01:00
parent d753df9d0c
commit ef08ea1930

View File

@ -83,7 +83,7 @@ class Logger(logging.Logger):
eId = hex(hash(eStrId) & 0xFFFFF) eId = hex(hash(eStrId) & 0xFFFFF)
logging.Logger.exception(self, *args) logging.Logger.exception(self, *args)
self.error('Exception id: %s', eId) self.error('Exception id: %s', eId)
self.debug(utils.python.collect_extra_debug_data()) self.debug('%s', utils.python.collect_extra_debug_data())
# The traceback should be sufficient if we want it. # The traceback should be sufficient if we want it.
# self.error('Exception string: %s', eStrId) # self.error('Exception string: %s', eStrId)