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

Method set_console_debug

keepercommander/cli.py:675–680  ·  view source on GitHub ↗

Set console debug level.

(self, enabled, batch_mode)

Source from the content-addressed store, hash-verified

673 return self.logger.level == logging.DEBUG and not self.has_file_logging()
674
675 def set_console_debug(self, enabled, batch_mode):
676 """Set console debug level."""
677 level = logging.DEBUG if enabled else (logging.WARNING if batch_mode else logging.INFO)
678 for h in self.logger.handlers:
679 if isinstance(h, logging.StreamHandler) and not getattr(h, '_debug_file', False):
680 h.setLevel(level)
681
682 def setup_file_logging(self, file_path):
683 """Setup debug file logging."""

Callers 2

toggle_console_debugMethod · 0.95
executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected