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

Function FatalLog

common/sys_log.go:31–37  ·  view source on GitHub ↗
(v ...any)

Source from the content-addressed store, hash-verified

29}
30
31func FatalLog(v ...any) {
32 t := time.Now()
33 LogWriterMu.RLock()
34 _, _ = fmt.Fprintf(gin.DefaultErrorWriter, "[FATAL] %v | %v \n", t.Format("2006/01/02 - 15:04:05"), v)
35 LogWriterMu.RUnlock()
36 os.Exit(1)
37}
38
39func LogStartupSuccess(startTime time.Time, port string) {
40 duration := time.Since(startTime)

Callers 6

mainFunction · 0.92
InitResourcesFunction · 0.92
InitDBFunction · 0.92
InitLogDBFunction · 0.92
InitRedisClientFunction · 0.85
ParseRedisOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected