Bring back time to logging

Change-Id: Ia68bcc931a676d89be068be07f24c91b1227844a
This commit is contained in:
Yuriy Taraday 2015-09-01 14:35:01 +03:00
parent e0f17f2db6
commit 3487079259

View File

@ -34,7 +34,7 @@ class ColorFormatter(logging.Formatter):
def set_console_formatter(**formatter_kwargs):
formatter_kwargs.setdefault(
'fmt', '%(asctime)s %(levelname)-8s %(name)-15s %(message)s')
formatter_kwargs.setdefault('datefmt', '%Y-%m-%d')
formatter_kwargs.setdefault('datefmt', '%Y-%m-%d %H:%M:%S')
root_logger = logging.getLogger('')
for handler in root_logger.handlers:
if isinstance(handler, logging.StreamHandler):