diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-02-04 11:22:14 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-02-04 11:22:14 -0300 |
commit | 4b99d4560260498b7ce783ffabba65adfecf7602 (patch) | |
tree | f12ce9c031fd701931d0ec7e18a0c6c632a05147 /src/leap/bitmask/app.py | |
parent | aae34b8e39de97bd5631f61b909842471526a760 (diff) | |
parent | 2ea1ffae0423355e626145dcd30d52fdc1b2fee6 (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/feature/update-log-format' into develop
Diffstat (limited to 'src/leap/bitmask/app.py')
-rw-r--r-- | src/leap/bitmask/app.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py index a702ab3a..1146d1d0 100644 --- a/src/leap/bitmask/app.py +++ b/src/leap/bitmask/app.py @@ -50,7 +50,7 @@ from PySide import QtCore, QtGui from leap.bitmask import __version__ as VERSION from leap.bitmask.util import leap_argparse -from leap.bitmask.util import log_silencer +from leap.bitmask.util import log_silencer, LOG_FORMAT from leap.bitmask.util.leap_log_handler import LeapLogHandler from leap.bitmask.util.streamtologger import StreamToLogger from leap.bitmask.platform_init import IS_WIN @@ -100,11 +100,7 @@ def add_logger_handlers(debug=False, logfile=None, replace_stdout=True): # Create logger and formatter logger = logging.getLogger(name='leap') logger.setLevel(level) - - # 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) + formatter = logging.Formatter(LOG_FORMAT) # Console handler try: |