pagure: Log the auth related event to their own log file on disk
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
67f6527c4e
commit
c22cd5957e
1 changed files with 14 additions and 0 deletions
|
@ -269,6 +269,15 @@ LOGGING = {
|
||||||
'subject': 'ERROR on pagure.io',
|
'subject': 'ERROR on pagure.io',
|
||||||
'filters': ['myfilter'],
|
'filters': ['myfilter'],
|
||||||
},
|
},
|
||||||
|
"auth_handler": {
|
||||||
|
"formatter": "standard",
|
||||||
|
"class": "logging.handlers.TimedRotatingFileHandler",
|
||||||
|
"filename": "/var/log/pagure/pagure_auth.log",
|
||||||
|
"backupCount": 10,
|
||||||
|
"utc": True,
|
||||||
|
"when": "midnight",
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
# The root logger configuration; this is a catch-all configuration
|
# The root logger configuration; this is a catch-all configuration
|
||||||
# that applies to all log messages not handled by a different logger
|
# that applies to all log messages not handled by a different logger
|
||||||
|
@ -282,6 +291,11 @@ LOGGING = {
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
'propagate': True
|
'propagate': True
|
||||||
},
|
},
|
||||||
|
"pagure_auth": {
|
||||||
|
"handlers": ["auth_handler"],
|
||||||
|
"level": "DEBUG",
|
||||||
|
"propagate": False,
|
||||||
|
},
|
||||||
'flask': {
|
'flask': {
|
||||||
'handlers': ['console'],
|
'handlers': ['console'],
|
||||||
'level': 'INFO',
|
'level': 'INFO',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue