MCPcopy
hub / github.com/Gallopsled/pwntools / isEnabledFor

Method isEnabledFor

pwnlib/log.py:467–476  ·  view source on GitHub ↗

isEnabledFor(level) -> bool See if the underlying logger is enabled for the specified level.

(self, level)

Source from the content-addressed store, hash-verified

465 self._log(level, message, args, kwargs, None)
466
467 def isEnabledFor(self, level):
468 """isEnabledFor(level) -> bool
469
470 See if the underlying logger is enabled for the specified level.
471 """
472 effectiveLevel = self._logger.getEffectiveLevel()
473
474 if effectiveLevel == 1:
475 effectiveLevel = context.log_level
476 return effectiveLevel <= level
477
478 def setLevel(self, level):
479 """setLevel(level)

Callers 13

info_onceMethod · 0.95
warning_onceMethod · 0.95
pullFunction · 0.80
pushFunction · 0.80
processFunction · 0.80
emulate_plt_instructionsFunction · 0.80
__init__Method · 0.80
processMethod · 0.80
_fillbufferMethod · 0.80
sendMethod · 0.80
clean_and_logMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected