Log server events with timestamps

(imported from commit b74274ccafcca716871058b8f9bde8dfe9e081ee)
This commit is contained in:
Keegan McAllister 2012-09-05 13:20:32 -04:00
parent 3218f917ae
commit 2332fa2c72
1 changed files with 2 additions and 1 deletions

View File

@ -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