Skip to content

Commit df4c118

Browse files
committed
ref(logging): remove syslog logging since deis-logger handles all aggregation
1 parent 746e364 commit df4c118

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

rootfs/deis/settings.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,6 @@
164164
# URLs that end with slashes are ugly
165165
APPEND_SLASH = False
166166

167-
# Determine where to send syslog messages
168-
if os.path.exists('/dev/log'): # Linux rsyslog
169-
SYSLOG_ADDRESS = '/dev/log'
170-
elif os.path.exists('/var/log/syslog'): # Mac OS X syslog
171-
SYSLOG_ADDRESS = '/var/log/syslog'
172-
else: # default SysLogHandler address
173-
SYSLOG_ADDRESS = ('localhost', 514)
174-
175167
# A sample logging configuration. The only tangible logging
176168
# performed by this configuration is to send an email to
177169
# the site admins on every HTTP 500 error when DEBUG=False.
@@ -208,11 +200,6 @@
208200
'filters': ['require_debug_false'],
209201
'class': 'django.utils.log.AdminEmailHandler'
210202
},
211-
'rsyslog': {
212-
'class': 'logging.handlers.SysLogHandler',
213-
'address': SYSLOG_ADDRESS,
214-
'facility': 'local0',
215-
},
216203
},
217204
'loggers': {
218205
'django': {
@@ -226,17 +213,17 @@
226213
'propagate': True,
227214
},
228215
'api': {
229-
'handlers': ['console', 'mail_admins', 'rsyslog'],
216+
'handlers': ['console', 'mail_admins'],
230217
'level': 'INFO',
231218
'propagate': True,
232219
},
233220
'registry': {
234-
'handlers': ['console', 'mail_admins', 'rsyslog'],
221+
'handlers': ['console', 'mail_admins'],
235222
'level': 'INFO',
236223
'propagate': True,
237224
},
238225
'scheduler': {
239-
'handlers': ['console', 'mail_admins', 'rsyslog'],
226+
'handlers': ['console', 'mail_admins'],
240227
'level': 'DEBUG',
241228
'propagate': True,
242229
},

0 commit comments

Comments
 (0)