Commit 6b0b58cd authored by Miquel Torres's avatar Miquel Torres
Browse files

Remove custom logger and forced DEBUG from project settings

parent 2c6058f6
......@@ -52,21 +52,6 @@ MIDDLEWARE_CLASSES = (
import traceback
import logging
# Define a class that logs unhandled errors
class LogUncatchedErrors:
def process_exception(self, request, exception):
logging.error("Unhandled Exception on request for %s\n%s",
request.build_absolute_uri(), traceback.format_exc())
# And add it to the middleware classes
MIDDLEWARE_CLASSES += ('sample_project.settings.LogUncatchedErrors',)
# set shown level of logging output to debug
ROOT_URLCONF = '{0}.urls'.format(TOPDIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment