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

Method info

bbot/modules/base.py:1599–1613  ·  view source on GitHub ↗

Logs informational 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

1597 self.trace()
1598
1599 def info(self, *args, trace=False, **kwargs):
1600 """Logs informational messages and optionally the stack trace of the most recent exception.
1601
1602 Args:
1603 *args: Variable-length argument list to pass to the logger.
1604 trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False.
1605 **kwargs: Arbitrary keyword arguments to pass to the logger.
1606
1607 Examples:
1608 >>> self.info("This is an informational message")
1609 >>> self.info("This is an informational message with a trace", trace=True)
1610 """
1611 self.log.info(*args, extra={"scan_id": self.scan.id}, **kwargs)
1612 if trace:
1613 self.trace()
1614
1615 def hugeinfo(self, *args, trace=False, **kwargs):
1616 """Logs a whole message in emboldened blue text, and optionally the stack trace of the most recent exception.

Callers 15

log_tableMethod · 0.95
_mainFunction · 0.45
setupMethod · 0.45
task_poll_loopMethod · 0.45
queryMethod · 0.45
check_bucket_openMethod · 0.45
log_trufflehog_statusMethod · 0.45
handle_eventMethod · 0.45
parse_outputMethod · 0.45
download_docker_repoMethod · 0.45
reportMethod · 0.45
handle_eventMethod · 0.45

Calls 1

traceMethod · 0.95

Tested by 2

mock_interactionMethod · 0.36
test_module_runMethod · 0.36