MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / hugesuccess

Method hugesuccess

bbot/modules/base.py:1647–1661  ·  view source on GitHub ↗

Logs a whole message in emboldened green text, 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.

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

Source from the content-addressed store, hash-verified

1645 self.trace()
1646
1647 def hugesuccess(self, *args, trace=False, **kwargs):
1648 """Logs a whole message in emboldened green text, and optionally the stack trace of the most recent exception.
1649
1650 Args:
1651 *args: Variable-length argument list to pass to the logger.
1652 trace (bool, optional): Whether to log the stack trace of the most recently caught exception. Defaults to False.
1653 **kwargs: Arbitrary keyword arguments to pass to the logger.
1654
1655 Examples:
1656 >>> self.hugesuccess("This is a huge success message")
1657 >>> self.hugesuccess("This is a huge success message with a trace", trace=True)
1658 """
1659 self.log.hugesuccess(*args, extra={"scan_id": self.scan.id}, **kwargs)
1660 if trace:
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.

Callers 6

require_api_keyMethod · 0.95
_mainFunction · 0.45
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45

Calls 1

traceMethod · 0.95

Tested by

no test coverage detected