Skip to content

Commit d1c28b2

Browse files
committed
Log caught werkzeug errors
1 parent 3620a1e commit d1c28b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/labthings/httperrorhandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from werkzeug.exceptions import default_exceptions
33
from werkzeug.exceptions import HTTPException
44

5+
import logging
56

67
class SerializedExceptionHandler:
78

@@ -21,6 +22,8 @@ def std_handler(self, error):
2122
:param error:
2223
2324
"""
25+
logging.error(error)
26+
2427
if isinstance(error, HTTPException):
2528
message = error.description
2629
elif hasattr(error, "message"):

0 commit comments

Comments
 (0)