MCPcopy Create free account
hub / github.com/DoNewsCode/core / Error

Method Error

otgorm/log.go:34–36  ·  view source on GitHub ↗

Error implements logger.Interface

(ctx context.Context, s string, i ...interface{})

Source from the content-addressed store, hash-verified

32
33// Error implements logger.Interface
34func (g GormLogAdapter) Error(ctx context.Context, s string, i ...interface{}) {
35 level.Error(g.Logging).Log("msg", fmt.Sprintf(s, i...))
36}
37
38// Trace implements logger.Interface
39func (g GormLogAdapter) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error) {

Callers 4

RoundTripMethod · 0.45
setupTopicFunction · 0.45
WriteMessagesMethod · 0.45
newClientFunction · 0.45

Calls 2

LogMethod · 0.80
SprintfMethod · 0.65

Tested by 1

setupTopicFunction · 0.36