From 2332fa2c728d7e7cdfaddb756e2a92f9ef6984ce Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 5 Sep 2012 13:20:32 -0400 Subject: [PATCH] Log server events with timestamps (imported from commit b74274ccafcca716871058b8f9bde8dfe9e081ee) --- zephyr/management/commands/runtornado.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zephyr/management/commands/runtornado.py b/zephyr/management/commands/runtornado.py index 6ae3446e0d..20f25fedf9 100644 --- a/zephyr/management/commands/runtornado.py +++ b/zephyr/management/commands/runtornado.py @@ -70,8 +70,9 @@ class Command(BaseCommand): if settings.DEBUG: import logging + logging.basicConfig(level=logging.INFO, + format='%(asctime)s %(levelname)-8s %(message)s') logger = logging.getLogger() - logger.setLevel(logging.INFO) def inner_run(): from django.conf import settings