summaryrefslogtreecommitdiffstats
path: root/deluge/log.py
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2008-06-17 22:46:05 +0000
committerAndrew Resch <andrewresch@gmail.com>2008-06-17 22:46:05 +0000
commitf548dbce7c580a8e57709db59f1f6aca2f621cd6 (patch)
tree03fddb0d1dcbf15445efdf6ea5548fbba00f065b /deluge/log.py
parent3d5a1d35408e0824bf22ef53d3810dd993a4dadc (diff)
downloaddeluge-f548dbce7c580a8e57709db59f1f6aca2f621cd6.tar.gz
deluge-f548dbce7c580a8e57709db59f1f6aca2f621cd6.tar.bz2
deluge-f548dbce7c580a8e57709db59f1f6aca2f621cd6.zip
Include timestamps in log messages
Diffstat (limited to 'deluge/log.py')
-rw-r--r--deluge/log.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deluge/log.py b/deluge/log.py
index a126aace3..2b74c62a9 100644
--- a/deluge/log.py
+++ b/deluge/log.py
@@ -38,7 +38,8 @@ import logging
# Setup the logger
logging.basicConfig(
level=logging.DEBUG,
- format="[%(levelname)-8s] %(module)s:%(lineno)d %(message)s"
+ format="[%(levelname)-8s] %(asctime)s %(module)s:%(lineno)d %(message)s",
+ datefmt="%H:%M:%S"
)
# Get the logger