MCPcopy Create free account
hub / github.com/BlueSkyXN/AI2API / logDebug

Function logDebug

wo2api.go:106–112  ·  view source on GitHub ↗

根据日志级别记录日志

(format string, v ...interface{})

Source from the content-addressed store, hash-verified

104
105// 根据日志级别记录日志
106func logDebug(format string, v ...interface{}) {
107 if logLevel == LogLevelDebug {
108 logMutex.Lock()
109 logger.Printf("[DEBUG] "+format, v...)
110 logMutex.Unlock()
111 }
112}
113
114func logInfo(format string, v ...interface{}) {
115 if logLevel == LogLevelDebug || logLevel == LogLevelInfo {

Callers 9

UnmarshalJSONMethod · 0.70
validateMessagesFunction · 0.70
extractMessagesFunction · 0.70
handleWoErrorFunction · 0.70
doRequestWithRetryFunction · 0.70
sanitizeJsonStringFunction · 0.70
handleStreamingRequestFunction · 0.70
saveResponseToFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected