Skip to content

Commit f38e69b

Browse files
committed
chore: printing traceback when debug is True
1 parent 721f53b commit f38e69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bc_obps/service/error_service/handle_exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ExceptionHandler:
4848
@staticmethod
4949
def debug_log_exception() -> None:
5050
"""Log exception traceback in debug mode."""
51-
if settings.DEBUG != "True":
51+
if not settings.DEBUG:
5252
return
5353
print("-" * 48 + "ERROR START" + "-" * 48)
5454
print(traceback.format_exc())

0 commit comments

Comments
 (0)