summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorChris Church <chris@ninemoreminutes.com>2013-07-15 20:26:57 +0200
committerChris Church <chris@ninemoreminutes.com>2013-07-15 20:27:02 +0200
commit8e0974c688d7938742bbd75fc72dd5f15b4244da (patch)
tree1bf0da15b99b805483ec73dcdebe39cd2c87e678 /config
parentFixed issue with Allow Callback checkbox and host_config_key value when user ... (diff)
downloadawx-8e0974c688d7938742bbd75fc72dd5f15b4244da.tar.xz
awx-8e0974c688d7938742bbd75fc72dd5f15b4244da.zip
Enabled syslog by default for all 500 errors.
Diffstat (limited to 'config')
-rw-r--r--config/deb/settings.py10
-rw-r--r--config/rpm/settings.py1
2 files changed, 9 insertions, 2 deletions
diff --git a/config/deb/settings.py b/config/deb/settings.py
index 1b020775d9..f1f58153c4 100644
--- a/config/deb/settings.py
+++ b/config/deb/settings.py
@@ -32,8 +32,14 @@ SECRET_KEY = file('/etc/awx/SECRET_KEY', 'rb').read().strip()
ALLOWED_HOSTS = ['*']
-LOGGING = {
- 'version': 1,
+LOGGING['handlers']['syslog'] = {
+ # ERROR captures 500 errors, WARNING also logs 4xx responses.
+ 'level': 'ERROR',
+ 'filters': ['require_debug_false'],
+ 'class': 'logging.handlers.SysLogHandler',
+ 'address': '/dev/log',
+ 'facility': 'local0',
+ 'formatter': 'simple',
}
SERVER_EMAIL = 'root@localhost'
diff --git a/config/rpm/settings.py b/config/rpm/settings.py
index ce0d2c5e16..f1f58153c4 100644
--- a/config/rpm/settings.py
+++ b/config/rpm/settings.py
@@ -33,6 +33,7 @@ SECRET_KEY = file('/etc/awx/SECRET_KEY', 'rb').read().strip()
ALLOWED_HOSTS = ['*']
LOGGING['handlers']['syslog'] = {
+ # ERROR captures 500 errors, WARNING also logs 4xx responses.
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'logging.handlers.SysLogHandler',