We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6058f commit 6b0b58cCopy full SHA for 6b0b58c
sample_project/settings.py
@@ -52,21 +52,6 @@
52
'django.contrib.messages.middleware.MessageMiddleware',
53
)
54
55
-if DEBUG:
56
- import traceback
57
- import logging
58
-
59
- # Define a class that logs unhandled errors
60
- class LogUncatchedErrors:
61
- def process_exception(self, request, exception):
62
- logging.error("Unhandled Exception on request for %s\n%s",
63
- request.build_absolute_uri(), traceback.format_exc())
64
- # And add it to the middleware classes
65
- MIDDLEWARE_CLASSES += ('sample_project.settings.LogUncatchedErrors',)
66
67
- # set shown level of logging output to debug
68
- logging.basicConfig(level=logging.DEBUG)
69
70
ROOT_URLCONF = '{0}.urls'.format(TOPDIR)
71
72
TEMPLATE_DIRS = (
0 commit comments