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

Method Error

logger/logger.go:152–156  ·  view source on GitHub ↗

Error print error messages

(ctx context.Context, msg string, data ...interface{})

Source from the content-addressed store, hash-verified

150
151// Error print error messages
152func (l *logger) Error(ctx context.Context, msg string, data ...interface{}) {
153 if l.LogLevel >= Error {
154 l.Printf(l.errStr+msg, append([]interface{}{utils.FileWithLineNum()}, data...)...)
155 }
156}
157
158// Trace print sql message
159//

Callers

nothing calls this directly

Calls 2

FileWithLineNumFunction · 0.92
PrintfMethod · 0.80

Tested by

no test coverage detected