Use single quotes for string literals.

main
Vincent Driessen 11 years ago
parent 51fee72f66
commit f0e02996bc

@ -15,28 +15,28 @@ except ImportError:
def setup_loghandlers(level=None): def setup_loghandlers(level=None):
if not logging._handlers: if not logging._handlers:
dictConfig({ dictConfig({
"version": 1, 'version': 1,
"disable_existing_loggers": False, 'disable_existing_loggers': False,
"formatters": { 'formatters': {
"console": { 'console': {
"format": "%(asctime)s %(message)s", 'format': '%(asctime)s %(message)s',
"datefmt": "%H:%M:%S", 'datefmt': '%H:%M:%S',
}, },
}, },
"handlers": { 'handlers': {
"console": { 'console': {
"level": "DEBUG", 'level': 'DEBUG',
# "class": "logging.StreamHandler", # 'class': 'logging.StreamHandler',
"class": "rq.utils.ColorizingStreamHandler", 'class': 'rq.utils.ColorizingStreamHandler',
"formatter": "console", 'formatter': 'console',
"exclude": ["%(asctime)s"], 'exclude': ['%(asctime)s'],
}, },
}, },
"root": { 'root': {
"handlers": ["console"], 'handlers': ['console'],
"level": level or "INFO", 'level': level or 'INFO',
} }
}) })

Loading…
Cancel
Save