MCPcopy Index your code
hub / github.com/blacklanternsecurity/bbot / debug

Method debug

bbot/modules/base.py:1551–1565  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

cycle_api_keyMethod · 0.95
_handle_batchMethod · 0.95
_events_waitingMethod · 0.95
_setupMethod · 0.95
_workerMethod · 0.95
queue_eventMethod · 0.95
queue_outgoing_eventMethod · 0.95
set_error_stateMethod · 0.95
api_page_iterMethod · 0.95
mergeMethod · 0.45
vega@5.jsFile · 0.45

Calls 1

traceMethod · 0.95

Tested by 2

async_callbackFunction · 0.36
sync_callbackFunction · 0.36