(self)
| 296 | logging.debug(msg) |
| 297 | |
| 298 | def debug_stacktrace(self): |
| 299 | exc = sys.exc_info()[0] |
| 300 | # the last one would be full_stack() |
| 301 | stack = traceback.extract_stack()[:-1] |
| 302 | if exc is not None: |
| 303 | del stack[-1] |
| 304 | trc = 'Traceback (most recent call last):\n' |
| 305 | msg = trc + ''.join(traceback.format_list(stack)) |
| 306 | if exc is not None: |
| 307 | msg += ' ' + traceback.format_exc().removeprefix(trc) |
| 308 | self.debug(msg) |
| 309 | |
| 310 | def __str__(self): |
| 311 | ret = f"GraphSync {self.uid}\n" |
no test coverage detected