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

Method set_console_debug

keepercommander/cli.py:550–555  ·  view source on GitHub ↗

Set console debug level.

(self, enabled, batch_mode)

Source from the content-addressed store, hash-verified

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."""
552 level = logging.DEBUG if enabled else (logging.WARNING if batch_mode else logging.INFO)
553 for h in self.logger.handlers:
554 if isinstance(h, logging.StreamHandler) and not getattr(h, '_debug_file', False):
555 h.setLevel(level)
556
557 def setup_file_logging(self, file_path):
558 """Setup debug file logging."""

Callers 2

toggle_console_debugMethod · 0.95
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected