message: don't indent the traceback

This shouldn't be needed anymore with json-logging.
This commit is contained in:
Daniel Schadt 2016-05-26 15:28:29 +02:00
parent 65e5a3fe09
commit 5f2d5feb58

View File

@ -50,8 +50,8 @@ def _log_stack(typ, stack):
stack = stack.splitlines() stack = stack.splitlines()
except AttributeError: except AttributeError:
pass pass
indented = '\n'.join(' ' + line.rstrip() for line in stack) stack_text = '\n'.join(line.rstrip() for line in stack)
log.message.debug("Stack for {} message:\n{}".format(typ, indented)) log.message.debug("Stack for {} message:\n{}".format(typ, stack_text))
def _wrapper(win_id, method_name, text, *args, **kwargs): def _wrapper(win_id, method_name, text, *args, **kwargs):