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

Method warning

bbot/modules/base.py:1663–1677  ·  view source on GitHub ↗

Logs a warning message, 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 True.

(self, *args, trace=True, **kwargs)

Source from the content-addressed store, hash-verified

1661 self.trace()
1662
1663 def warning(self, *args, trace=True, **kwargs):
1664 """Logs a warning message, and optionally the stack trace of the most recent exception.
1665
1666 Args:
1667 *args: Variable-length argument list to pass to the logger.
1668 trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to True.
1669 **kwargs: Arbitrary keyword arguments to pass to the logger.
1670
1671 Examples:
1672 >>> self.warning("This is a warning message")
1673 >>> self.warning("This is a warning message with a trace", trace=False)
1674 """
1675 self.log.warning(*args, extra={"scan_id": self.scan.id}, **kwargs)
1676 if trace:
1677 self.trace()
1678
1679 def hugewarning(self, *args, trace=True, **kwargs):
1680 """Logs a whole message in emboldened orange text, and optionally the stack trace of the most recent exception.

Callers 15

make_eventMethod · 0.95
update_eventMethod · 0.95
emit_eventMethod · 0.95
api_page_iterMethod · 0.95
_mainFunction · 0.45
handle_keyboard_inputFunction · 0.45
setupMethod · 0.45
handle_eventMethod · 0.45
queryMethod · 0.45
do_miningMethod · 0.45
handle_eventMethod · 0.45

Calls 1

traceMethod · 0.95

Tested by

no test coverage detected