Browse Source

fix(api): improve class name display in error emails

Peter Thomassen 1 year ago
parent
commit
43ff3d1cfc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/desecapi/exception_handlers.py

+ 1 - 1
api/desecapi/exception_handlers.py

@@ -19,7 +19,7 @@ def exception_handler(exc, context):
     def _log():
         logger = logging.getLogger("django.request")
         logger.error(
-            "{} Supplementary Information".format(exc.__class__),
+            f"{exc.__class__.__module__}.{exc.__class__.__name__} Supplementary Information",
             exc_info=exc,
             stack_info=False,
         )