aboutsummaryrefslogtreecommitdiff
path: root/src/Logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/Logging.py')
-rw-r--r--src/Logging.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Logging.py b/src/Logging.py
index 53275686..60c008a6 100644
--- a/src/Logging.py
+++ b/src/Logging.py
@@ -77,4 +77,8 @@ class Log(object):
def critical(self, message: str, params: typing.List, **kwargs):
self._log(message, params, logging.CRITICAL, kwargs)
def _log(self, message: str, params: typing.List, level: int, kwargs: dict):
+ if kwargs.get("exc_info") == True:
+ # because we're doing the actual logging on another thread,
+ # we need to catch actual exception information here.
+ kwargs["exc_info"] = sys.exc_info()
self._queue.put((message, params, level, kwargs))