Basic logging for Discord account creation and database updating.

This commit is contained in:
Adarnof
2015-12-28 06:50:13 +00:00
parent 23168ded9e
commit 55fc69cf8d
4 changed files with 117 additions and 2 deletions

View File

@@ -347,3 +347,35 @@ TEAMSPEAK3_PUBLIC_URL = os.environ.get('AA_TEAMSPEAK3_PUBLIC_URL', 'yourdomain.c
DISCORD_SERVER_ID = os.environ.get('AA_DISCORD_SERVER_ID', '')
DISCORD_USER_EMAIL = os.environ.get('AA_DISCORD_USER_EMAIL', '')
DISCORD_USER_PASSWORD = os.environ.get('AA_DISCORD_USER_PASSWORD', '')
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format' : "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s",
'datefmt' : "%d/%b/%Y %H:%M:%S"
},
'simple': {
'format': '%(levelname)s %(message)s'
},
},
'handlers': {
'debug_file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': 'debug.log',
'formatter': 'verbose'
}
},
'loggers': {
'celerytask': {
'handlers': ['debug_file'],
'level': 'DEBUG',
},
'services': {
'handlers': ['debug_file'],
'level': 'DEBUG',
}
}
}