Commit b80bbaf2 authored by Philipp Hörist's avatar Philipp Hörist

Improve log message format

parent 0eb75eb7
......@@ -125,9 +125,9 @@ class FancyFormatter(logging.Formatter):
if self.use_color:
c = FancyFormatter.colors_mapping.get(level, '')
record.levelname = colorize(record.levelname, c)
record.name = colorize(record.name, colors.CYAN)
record.name = '%-25s' % colorize(record.name, colors.CYAN)
else:
record.name += ':'
record.name = '%-25s|' % record.name
return logging.Formatter.format(self, record)
......
......@@ -86,4 +86,4 @@ def get_eme_message(eme_data):
class LogAdapter(LoggerAdapter):
def process(self, msg, kwargs):
return '[%s] %s' % (self.extra['account'], msg), kwargs
return '(%s) %s' % (self.extra['account'], msg), kwargs
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment