MCPcopy Create free account
hub / github.com/diillson/chatcli / isDebugMode

Function isDebugMode

server/middleware.go:74–76  ·  view source on GitHub ↗

isDebugMode returns true when detailed error info should be logged.

()

Source from the content-addressed store, hash-verified

72
73// isDebugMode returns true when detailed error info should be logged.
74func isDebugMode() bool {
75 return strings.EqualFold(os.Getenv("CHATCLI_DEBUG"), "true")
76}
77
78// sanitizePanicValue removes potentially sensitive data from panic values before logging.
79func sanitizePanicValue(r interface{}) string {

Callers 2

recoveryUnaryInterceptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected