|
164 | 164 | # URLs that end with slashes are ugly |
165 | 165 | APPEND_SLASH = False |
166 | 166 |
|
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 | | - |
175 | 167 | # A sample logging configuration. The only tangible logging |
176 | 168 | # performed by this configuration is to send an email to |
177 | 169 | # the site admins on every HTTP 500 error when DEBUG=False. |
|
208 | 200 | 'filters': ['require_debug_false'], |
209 | 201 | 'class': 'django.utils.log.AdminEmailHandler' |
210 | 202 | }, |
211 | | - 'rsyslog': { |
212 | | - 'class': 'logging.handlers.SysLogHandler', |
213 | | - 'address': SYSLOG_ADDRESS, |
214 | | - 'facility': 'local0', |
215 | | - }, |
216 | 203 | }, |
217 | 204 | 'loggers': { |
218 | 205 | 'django': { |
|
226 | 213 | 'propagate': True, |
227 | 214 | }, |
228 | 215 | 'api': { |
229 | | - 'handlers': ['console', 'mail_admins', 'rsyslog'], |
| 216 | + 'handlers': ['console', 'mail_admins'], |
230 | 217 | 'level': 'INFO', |
231 | 218 | 'propagate': True, |
232 | 219 | }, |
233 | 220 | 'registry': { |
234 | | - 'handlers': ['console', 'mail_admins', 'rsyslog'], |
| 221 | + 'handlers': ['console', 'mail_admins'], |
235 | 222 | 'level': 'INFO', |
236 | 223 | 'propagate': True, |
237 | 224 | }, |
238 | 225 | 'scheduler': { |
239 | | - 'handlers': ['console', 'mail_admins', 'rsyslog'], |
| 226 | + 'handlers': ['console', 'mail_admins'], |
240 | 227 | 'level': 'DEBUG', |
241 | 228 | 'propagate': True, |
242 | 229 | }, |
|
0 commit comments