summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-01 20:59:09 -0400
committerKali Kaneko <kali@leap.se>2014-02-01 20:59:09 -0400
commitaae34b8e39de97bd5631f61b909842471526a760 (patch)
tree94915f743be912f19ad1747f0ebddf4e88c13496 /src/leap
parent36e49c638cbfba25466644553009526ef87c01b8 (diff)
parent403c681e3d420479747407ae77d5c157c0677dd9 (diff)
Merge remote-tracking branch 'ivan-github/feature/more-readable-logs' into develop
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py
index 941ba4f8..a702ab3a 100644
--- a/src/leap/bitmask/app.py
+++ b/src/leap/bitmask/app.py
@@ -101,8 +101,9 @@ def add_logger_handlers(debug=False, logfile=None, replace_stdout=True):
logger = logging.getLogger(name='leap')
logger.setLevel(level)
- log_format = ('%(asctime)s - %(name)s:%(funcName)s:L#%(lineno)s '
- '- %(levelname)s - %(message)s')
+ # levelname length == 8, since 'CRITICAL' is the longest
+ log_format = ('%(asctime)s - %(levelname)-8s - '
+ 'L#%(lineno)-4s : %(name)s:%(funcName)s() - %(message)s')
formatter = logging.Formatter(log_format)
# Console handler