Get the cms up to the point of rendering a template
This commit is contained in:
committed by
Matthew Mongeau
parent
e845221f4a
commit
5ff05f7a95
0
common/lib/monitoring/__init__.py
Normal file
0
common/lib/monitoring/__init__.py
Normal file
10
common/lib/monitoring/exceptions.py
Normal file
10
common/lib/monitoring/exceptions.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.core.signals import got_request_exception
|
||||
from django.dispatch import receiver
|
||||
import logging
|
||||
|
||||
|
||||
@receiver(got_request_exception)
|
||||
def record_request_exception(sender, **kwargs):
|
||||
logging.exception("Uncaught exception from {sender}".format(
|
||||
sender=sender
|
||||
))
|
||||
Reference in New Issue
Block a user