Logs debug messages and optionally the stack trace of the most recent exception. Args: *args: Variable-length argument list to pass to the logger. trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False.
(self, *args, trace=False, **kwargs)
| 1549 | return preserve_graph |
| 1550 | |
| 1551 | def debug(self, *args, trace=False, **kwargs): |
| 1552 | """Logs debug messages and optionally the stack trace of the most recent exception. |
| 1553 | |
| 1554 | Args: |
| 1555 | *args: Variable-length argument list to pass to the logger. |
| 1556 | trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False. |
| 1557 | **kwargs: Arbitrary keyword arguments to pass to the logger. |
| 1558 | |
| 1559 | Examples: |
| 1560 | >>> self.debug("This is a debug message") |
| 1561 | >>> self.debug("This is a debug message with a trace", trace=True) |
| 1562 | """ |
| 1563 | self.log.debug(*args, extra={"scan_id": self.scan.id}, **kwargs) |
| 1564 | if trace: |
| 1565 | self.trace() |
| 1566 | |
| 1567 | def verbose(self, *args, trace=False, **kwargs): |
| 1568 | """Logs messages and optionally the stack trace of the most recent exception. |