Dynamically switch debug level: 0 = WARNING, 1 = INFO, 2 = DEBUG.
(cls, debug_level: int = 2)
| 252 | |
| 253 | @classmethod |
| 254 | def set_debug(cls, debug_level: int = 2) -> None: |
| 255 | """Dynamically switch debug level: 0 = WARNING, 1 = INFO, 2 = DEBUG.""" |
| 256 | global OPENSPACE_DEBUG |
| 257 | OPENSPACE_DEBUG = max(0, min(debug_level, 2)) |
| 258 | cls._update_level(cls._resolve_level(None)) |
| 259 | |
| 260 | @classmethod |
| 261 | def add_file_handler( |
no test coverage detected