Skip to content

Commit 36c87c8

Browse files
committed
Log traceback if exceptions are ignored
1 parent 44aff88 commit 36c87c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_redis/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _decorator(self, *args, **kwargs):
3232
except ConnectionInterrupted as e:
3333
if self._ignore_exceptions:
3434
if self._log_ignored_exceptions:
35-
self.logger.error(str(e))
35+
self.logger.exception(str(e))
3636

3737
return return_value
3838
raise e.__cause__

0 commit comments

Comments
 (0)