We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0aa4438 + b96d714 commit 4546b09Copy full SHA for 4546b09
src/pybind/mgr/mgr_util.py
@@ -22,6 +22,7 @@
22
from ipaddress import ip_address
23
from threading import Lock, Condition
24
from typing import no_type_check, NewType
25
+from traceback import format_exc as tb_format_exc
26
import urllib
27
from functools import wraps
28
if sys.version_info >= (3, 3):
@@ -88,9 +89,9 @@ def run(self):
88
89
while not self.finished.is_set():
90
self.finished.wait(self.interval)
91
self.function(*self.args, **self.kwargs)
- self.finished.set()
92
- except Exception as e:
93
- logger.error("task exception: %s", e)
+ except Exception:
+ logger.error(f'exception encountered in RTimer instance "{self}":'
94
+ f'\n{tb_format_exc()}')
95
raise
96
97
0 commit comments