Skip to content

Commit

Permalink
webproject: Add SuppressDeprecated filter to snf-manage logging
Browse files Browse the repository at this point in the history
Add SuppressDeprecated filter to snf-manage logging to support Django's
warnings regarding deprecated features. A management command should not
print any of these to the Synnefo's administrator.
  • Loading branch information
philipgian committed Sep 20, 2016
1 parent 7649aa6 commit 61e9557
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion snf-webproject/conf/10-snf-webproject-logging.conf
Expand Up @@ -81,12 +81,19 @@
# 'version': 1,
# 'disable_existing_loggers': False,
#
# 'filters': {
# 'suppress_deprecated': {
# '()': 'synnefo.webproject.logging_filter.SuppressDeprecated'
# }
# },
#
# 'formatters': FORMATTERS,
#
# 'handlers': {
# 'console': {
# 'class': 'logging.StreamHandler',
# 'formatter': 'verbose'
# 'formatter': 'verbose',
# 'filters': ['suppress_deprecated']
# },
# },
#
Expand Down
Expand Up @@ -81,12 +81,19 @@
'version': 1,
'disable_existing_loggers': False,

'filters': {
'suppress_deprecated': {
'()': 'synnefo.webproject.logging_filter.SuppressDeprecated'
}
},

'formatters': FORMATTERS,

'handlers': {
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose'
'formatter': 'verbose',
'filters': ['suppress_deprecated']
},
},

Expand Down

0 comments on commit 61e9557

Please sign in to comment.