summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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