MCPcopy Create free account
hub / github.com/Tong89/smartNode / debug_api_enabled

Function debug_api_enabled

backend/config.py:30–32  ·  view source on GitHub ↗

是否开启调试接口(默认关闭)。生产环境不暴露内部状态。

()

Source from the content-addressed store, hash-verified

28
29
30def debug_api_enabled():
31 """是否开启调试接口(默认关闭)。生产环境不暴露内部状态。"""
32 return os.environ.get("SMARTNODE_DEBUG_API", "").strip().lower() in ("1", "true", "yes", "on")
33
34
35# ==========================================

Callers 1

get_debug_statusFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected