Gitlab CSE Unil

Commit ed468590 authored by Julien Furrer's avatar Julien Furrer
Browse files

Logging config, petits modifs

parent 6cf7ad8f
......@@ -388,10 +388,18 @@ LOGGING = {
'formatter': 'verbose_with_remote',
'filename': '{}/log/debug.log'.format(dirname(SITE_ROOT)),
},
'file': {
'level': 'INFO',
# 'class': 'logging.FileHandler',
'class': 'logging.handlers.WatchedFileHandler',
'filters': ['add_remote_info', ],
'formatter': 'verbose',
'filename': '{}/log/error.log'.format(dirname(SITE_ROOT)),
},
},
'loggers': {
'django.request': {
'handlers': ['mail_admins', 'mail_admins_file', 'file_debug', ],
'handlers': ['mail_admins', 'mail_admins_file', 'file_debug', 'file' ],
'level': 'WARNING',
'propagate': True,
},
......@@ -401,17 +409,17 @@ LOGGING = {
'propagate': True,
},
'adim_app': {
'handlers': ['console', 'file_debug'],
'handlers': ['console', 'file_debug', 'file'],
'level': 'DEBUG',
'propagate': True,
},
'adim_ttp': {
'handlers': ['console', 'file_debug'],
'handlers': ['console', 'file_debug', 'file'],
'level': 'DEBUG',
'propagate': True,
},
'shibauth': {
'handlers': ['console', 'file_debug'],
'handlers': ['console', 'file_debug', 'file'],
'level': 'DEBUG',
'propagate': True,
},
......
......@@ -40,7 +40,6 @@ def get_attp_message(attp_msg64, attp_hash):
# malformed massage
# TODO: log malformed message error
logger.debug("malformed message")
print("malformed message")
msg = None
if msg:
......
Supports Markdown
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