summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-21 15:00:52 +0200
committerAnton Khirnov <anton@khirnov.net>2020-10-21 15:00:52 +0200
commit84a086804e339d47e5b197cbe3bd8d7b19e9cbee (patch)
treee097b92db439895ecdad1fa4f8fff33cc08aba45 /alot/__main__.py
parent6f6578be87345c4b6bb624b28015b23acd7460df (diff)
__main__: print the source location in the log format
Diffstat (limited to 'alot/__main__.py')
-rw-r--r--alot/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/__main__.py b/alot/__main__.py
index c901bb07..d09a84f6 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -94,7 +94,7 @@ def main():
root_logger.removeHandler(log_handler)
root_logger = None
numeric_loglevel = getattr(logging, options.debug_level.upper(), None)
- logformat = '%(levelname)s:%(module)s:%(message)s'
+ logformat = '%(levelname)s:%(module)s[%(filename)s:%(lineno)d]:%(message)s'
logging.basicConfig(level=numeric_loglevel, filename=options.logfile,
filemode='w', format=logformat)