MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / turn_off_logging

Function turn_off_logging

models.py:96–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95# keep provider logging quiet in normal operation
96def turn_off_logging():
97 os.environ["LITELLM_LOG"] = "ERROR" # only errors
98 litellm.suppress_debug_info = True
99 # Silence **all** LiteLLM sub-loggers (utils, cost_calculator…)
100 for name in logging.Logger.manager.loggerDict:
101 if name.lower().startswith("litellm"):
102 logging.getLogger(name).setLevel(logging.ERROR)
103
104
105def set_litellm_params():

Callers 1

configure_litellmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected