summaryrefslogtreecommitdiff
path: root/alot/__main__.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-20 22:05:29 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-20 22:05:29 +0100
commit4d467ddda9266627f9c857142ea602d853b57c5e (patch)
treebaf07f7288b94a362a1694885a1be035acc227f2 /alot/__main__.py
parent21843511ef9e0482da917c9e01f1add1949fabde (diff)
Add time to log format.
Useful for a quick check how long operations took.
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 37d74f3b..c74e5d6f 100644
--- a/alot/__main__.py
+++ b/alot/__main__.py
@@ -95,7 +95,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[%(filename)s:%(lineno)d]:%(message)s'
+ logformat = '%(levelname)s:%(asctime)s:%(module)s[%(filename)s:%(lineno)d]:%(message)s'
logging.basicConfig(level=numeric_loglevel, filename=options.logfile,
filemode='w', format=logformat)