MCPcopy Create free account
hub / github.com/StackStorm/st2 / enable_debugging

Function enable_debugging

st2common/st2common/util/debugging.py:33–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def enable_debugging():
34 global ENABLE_DEBUGGING
35 ENABLE_DEBUGGING = True
36
37 # Set debug level for all StackStorm loggers
38 set_log_level_for_all_loggers(level=stdlib_logging.DEBUG)
39
40 # Set debug log level for kombu
41 setup_logging(loglevel=stdlib_logging.DEBUG)
42
43 # Set debug log level for paramiko
44 paramiko.common.logging.basicConfig(level=paramiko.common.DEBUG)
45
46 return ENABLE_DEBUGGING
47
48
49def disable_debugging():

Callers 1

setupFunction · 0.90

Calls 2

setup_loggingFunction · 0.85

Tested by

no test coverage detected