Commit 8a7b5c86 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Fix loggers webproject entry point

parent 94459980
......@@ -62,6 +62,12 @@ middlware_classes = [
'synnefo.lib.middleware.SecureMiddleware'
]
loggers = {
'astakos': {
'handlers': ['console'],
'level': 'INFO'
}
}
static_files = {'astakos.im': ''}
......@@ -75,31 +81,3 @@ USE_X_FORWARDED_HOST = False
CUSTOM_USER_MODEL = 'astakos.im.AstakosUser'
# Setup logging (use this name for the setting to avoid conflicts with django > 1.2.x).
LOGGING_SETUP = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'simple': {
'format': '%(message)s'
},
'verbose': {
'format': '%(asctime)s [%(levelname)s] %(name)s %(message)s'
},
},
'handlers': {
'null': {
'class': 'logging.NullHandler',
},
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose'
},
},
'loggers': {
'astakos': {
'handlers': ['console'],
'level': 'INFO'
},
}
}
......@@ -204,7 +204,8 @@ setup(
'web_middleware = astakos.im.synnefo_settings:middlware_classes',
'web_context_processors = astakos.im.synnefo_settings:context_processors',
'urls = astakos.urls:urlpatterns',
'web_static = astakos.im.synnefo_settings:static_files'
'web_static = astakos.im.synnefo_settings:static_files',
'loggers = astakos.im.synnefo_settings:loggers'
]
}
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment