MCPcopy
hub / github.com/QuantumNous/new-api / SysLog

Function SysLog

common/sys_log.go:17–22  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

15var LogWriterMu sync.RWMutex
16
17func SysLog(s string) {
18 t := time.Now()
19 LogWriterMu.RLock()
20 _, _ = fmt.Fprintf(gin.DefaultWriter, "[SYS] %v | %s \n", t.Format("2006/01/02 - 15:04:05"), s)
21 LogWriterMu.RUnlock()
22}
23
24func SysError(s string) {
25 t := time.Now()

Callers 15

mainFunction · 0.92
InitResourcesFunction · 0.92
TurnstileCheckFunction · 0.92
authHelperFunction · 0.92
TokenAuthReadOnlyFunction · 0.92
TokenAuthFunction · 0.92
RelayPanicRecoverFunction · 0.92
findOrCreateOAuthUserFunction · 0.92
Setup2FAFunction · 0.92
Get2FAStatusFunction · 0.92
RegenerateBackupCodesFunction · 0.92
MigrateConsoleSettingFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected