MCPcopy
hub / github.com/tuna/tunasync / Panicf

Method Panicf

internal/logger.go:101–105  ·  view source on GitHub ↗
(format string, args ...any)

Source from the content-addressed store, hash-verified

99}
100
101func (l *Logger) Panicf(format string, args ...any) {
102 msg := formatMessage(format, args...)
103 l.log(slog.LevelError, msg)
104 panic(msg)
105}
106
107func (l *Logger) log(level slog.Level, msg string) {
108 handler := currentHandler()

Callers 3

TestLoggerPanicMethodsFunction · 0.80
removeWorkerFunction · 0.80
flushDisabledJobsFunction · 0.80

Calls 2

logMethod · 0.95
formatMessageFunction · 0.85

Tested by 1

TestLoggerPanicMethodsFunction · 0.64