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

Method set_console_debug

keepercommander/cli.py:647–652  ·  view source on GitHub ↗

Set console debug level.

(self, enabled, batch_mode)

Source from the content-addressed store, hash-verified

645 return self.logger.level == logging.DEBUG and not self.has_file_logging()
646
647 def set_console_debug(self, enabled, batch_mode):
648 """Set console debug level."""
649 level = logging.DEBUG if enabled else (logging.WARNING if batch_mode else logging.INFO)
650 for h in self.logger.handlers:
651 if isinstance(h, logging.StreamHandler) and not getattr(h, '_debug_file', False):
652 h.setLevel(level)
653
654 def setup_file_logging(self, file_path):
655 """Setup debug file logging."""

Callers 2

toggle_console_debugMethod · 0.95
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected