summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-10-07 10:25:23 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-10-07 10:25:23 -0300
commit26ef49e2351cc5a204281b53006e2697ed42ef20 (patch)
tree544e9f9d0e96112758e7cd2a7e0f74e851137ca3 /src/leap/bitmask/util
parent584866689560bd2ebea01ecc5e6ae5e79ce7fc81 (diff)
Show more context information in the logs.
Add line numbers and function name from where the log is displayed.
Diffstat (limited to 'src/leap/bitmask/util')
-rw-r--r--src/leap/bitmask/util/leap_log_handler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/util/leap_log_handler.py b/src/leap/bitmask/util/leap_log_handler.py
index 98924c12..262f2f65 100644
--- a/src/leap/bitmask/util/leap_log_handler.py
+++ b/src/leap/bitmask/util/leap_log_handler.py
@@ -52,7 +52,7 @@ class LogHandler(logging.Handler):
:param logging_level: the debug level to define the color.
:type logging_level: str.
"""
- log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
+ log_format = '%(asctime)s - %(name)s:%(funcName)s:L#%(lineno)s - %(levelname)s - %(message)s'
formatter = logging.Formatter(log_format)
return formatter