Method
TimeTrack
(start time.Time, e string, info map[string]interface{})
Source from the content-addressed store, hash-verified
| 129 | } |
| 130 | |
| 131 | func (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
Tested by
no test coverage detected