MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Warn

Function Warn

util/log/log.go:295–298  ·  view source on GitHub ↗

prints the contents prefixed by a carriage return + blue info text

(v ...any)

Source from the content-addressed store, hash-verified

293
294// prints the contents prefixed by a carriage return + blue info text
295func Warn(v ...any) {
296 fmt.Printf("\r%s %s %s: ", timeColor(timeString()), warningColor("WARN "), stackColor(stackCallerModule(3)))
297 fmt.Print(v...)
298}
299
300// prints the contents prefixed by a carriage return + blue info text
301func Warnf(format string, v ...any) {

Callers 1

NewFunction · 0.92

Calls 2

timeStringFunction · 0.85
stackCallerModuleFunction · 0.85

Tested by

no test coverage detected