Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add exception log file

  • Loading branch information...
commit bfa1a09e2cb76f5fb1115003124dfefe68ab92ec 1 parent 6c000c3
@ericholscher ericholscher authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 readthedocs/settings/base.py
View
8 readthedocs/settings/base.py
@@ -198,10 +198,10 @@
'level':'DEBUG',
'class':'django.utils.log.NullHandler',
},
- 'logfile': {
+ 'exceptionlog': {
'level':'DEBUG',
'class':'logging.handlers.RotatingFileHandler',
- 'filename': os.path.join(LOGS_ROOT, "rtd.log"),
+ 'filename': os.path.join(LOGS_ROOT, "rtd-exceptions.log"),
'maxBytes': 50000,
'backupCount': backup_count,
'formatter': 'standard',
@@ -244,14 +244,14 @@
'propagate': False,
},
'django.request': {
- 'handlers': ['mail_admins', 'errorlog'],
+ 'handlers': ['mail_admins', 'exceptionlog'],
'level': 'ERROR',
'propagate': False,
},
#Default handler for everything that we're doing. Hopefully this doesn't double-print
#the Django things as well. Not 100% sure how logging works :)
'': {
- 'handlers': ['console', 'logfile'],
+ 'handlers': ['console', 'errorlog'],
'level': 'DEBUG',
},
}
Please sign in to comment.
Something went wrong with that request. Please try again.