MCPcopy
hub / github.com/gourouting/singo / Panic

Method Panic

util/logger.go:33–40  ·  view source on GitHub ↗

Panic logs a fatal error and exits.

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

Source from the content-addressed store, hash-verified

31
32// Panic logs a fatal error and exits.
33func (ll *Logger) Panic(format string, v ...interface{}) {
34 if LevelError > ll.level {
35 return
36 }
37 msg := fmt.Sprintf("[Panic] "+format, v...)
38 ll.Println(msg)
39 os.Exit(1)
40}
41
42// Error logs an error.
43func (ll *Logger) Error(format string, v ...interface{}) {

Callers 2

RedisFunction · 0.80
confInitFunction · 0.80

Calls 1

PrintlnMethod · 0.95

Tested by

no test coverage detected