MCPcopy Create free account
hub / github.com/DOSNetwork/core / TimeTrack

Method TimeTrack

log/logger.go:131–142  ·  view source on GitHub ↗
(start time.Time, e string, info map[string]interface{})

Source from the content-addressed store, hash-verified

129}
130
131func (l *logger) TimeTrack(start time.Time, e string, info map[string]interface{}) {
132 elapsed := time.Since(start).Nanoseconds() / 1000
133
134 if l.entry == nil {
135 return
136 }
137 if info != nil {
138 l.entry.WithFields(logrus.Fields{"EVENT": e, e: elapsed}).WithFields(info).Debug("")
139 } else {
140 l.entry.WithFields(logrus.Fields{"EVENT": e, e: elapsed}).Debug("")
141 }
142}

Callers

nothing calls this directly

Implementers 1

loggerlog/logger.go

Calls 1

DebugMethod · 0.65

Tested by

no test coverage detected