MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / is_console_debug_on

Method is_console_debug_on

keepercommander/cli.py:543–548  ·  view source on GitHub ↗

Check if console debug is enabled.

(self, batch_mode)

Source from the content-addressed store, hash-verified

541 return any(getattr(h, '_debug_file', False) for h in self.logger.handlers)
542
543 def is_console_debug_on(self, batch_mode):
544 """Check if console debug is enabled."""
545 for h in self.logger.handlers:
546 if isinstance(h, logging.StreamHandler) and not getattr(h, '_debug_file', False):
547 return h.level == logging.DEBUG
548 return self.logger.level == logging.DEBUG and not self.has_file_logging()
549
550 def set_console_debug(self, enabled, batch_mode):
551 """Set console debug level."""

Callers 2

toggle_console_debugMethod · 0.95
do_commandFunction · 0.80

Calls 1

has_file_loggingMethod · 0.95

Tested by

no test coverage detected