Add logging config to pagure's configuration file
This commit is contained in:
parent
896fa8079a
commit
17698fc275
1 changed files with 42 additions and 0 deletions
|
@ -218,3 +218,45 @@ SSH_KEYS = {
|
||||||
OLD_VIEW_COMMIT_ENABLED = True
|
OLD_VIEW_COMMIT_ENABLED = True
|
||||||
|
|
||||||
PAGURE_CI_SERVICES=['jenkins']
|
PAGURE_CI_SERVICES=['jenkins']
|
||||||
|
|
||||||
|
LOGGING = {
|
||||||
|
'version': 1,
|
||||||
|
'disable_existing_loggers': False,
|
||||||
|
'formatters': {
|
||||||
|
'standard': {
|
||||||
|
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'handlers': {
|
||||||
|
'console': {
|
||||||
|
'level': 'INFO',
|
||||||
|
'formatter': 'standard',
|
||||||
|
'class': 'logging.StreamHandler',
|
||||||
|
'stream': 'ext://sys.stdout',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
# The root logger configuration; this is a catch-all configuration
|
||||||
|
# that applies to all log messages not handled by a different logger
|
||||||
|
'root': {
|
||||||
|
'level': 'INFO',
|
||||||
|
'handlers': ['console'],
|
||||||
|
},
|
||||||
|
'loggers': {
|
||||||
|
'pagure': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'level': 'DEBUG',
|
||||||
|
'propagate': False
|
||||||
|
},
|
||||||
|
'flask': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'level': 'INFO',
|
||||||
|
'propagate': False
|
||||||
|
},
|
||||||
|
'sqlalchemy': {
|
||||||
|
'handlers': ['console'],
|
||||||
|
'level': 'WARN',
|
||||||
|
'propagate': False
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue