MCPcopy
hub / github.com/go-gorm/gorm / Warn

Method Warn

logger/slog.go:46–50  ·  view source on GitHub ↗
(ctx context.Context, msg string, data ...interface{})

Source from the content-addressed store, hash-verified

44}
45
46func (l *slogLogger) Warn(ctx context.Context, msg string, data ...interface{}) {
47 if l.LogLevel >= Warn {
48 l.log(ctx, slog.LevelWarn, msg, slog.Any("data", data))
49 }
50}
51
52func (l *slogLogger) Error(ctx context.Context, msg string, data ...interface{}) {
53 if l.LogLevel >= Error {

Callers

nothing calls this directly

Calls 1

logMethod · 0.95

Tested by

no test coverage detected