MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / setup_logging

Function setup_logging

src/opencode_ai/_utils/_logs.py:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def setup_logging() -> None:
17 env = os.environ.get("OPENCODE_LOG")
18 if env == "debug":
19 _basic_config()
20 logger.setLevel(logging.DEBUG)
21 httpx_logger.setLevel(logging.DEBUG)
22 elif env == "info":
23 _basic_config()
24 logger.setLevel(logging.INFO)
25 httpx_logger.setLevel(logging.INFO)

Callers

nothing calls this directly

Calls 2

_basic_configFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected