From f548dbce7c580a8e57709db59f1f6aca2f621cd6 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 17 Jun 2008 22:46:05 +0000 Subject: [PATCH] Include timestamps in log messages --- deluge/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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