From 56ecabbd78df97fd9d548d7642756a8c9a19e3ff Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 9 Oct 2007 21:43:55 +0200 Subject: [PATCH] Readd timestamps to the logs --- sugar/logger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sugar/logger.py b/sugar/logger.py index c401f3c1..43d0d768 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -38,6 +38,9 @@ def set_level(level): logging.getLogger('').setLevel(levels[level]) def start(log_filename=None): + logging.basicConfig(level=logging.WARNING, + format="%(created)f %(levelname)s %(message)s") + if os.environ.has_key('SUGAR_LOGGER_LEVEL'): set_level(os.environ['SUGAR_LOGGER_LEVEL'])