Skip to content
Snippets Groups Projects
Unverified Commit 27b8a7ff authored by Silas Davis's avatar Silas Davis
Browse files

Don't capture time twice

parent 7454c0a3
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,8 @@ func LogLineToRecord(keyvals ...interface{}) *log15.Record {
Call: call,
Ctx: ctx,
KeyNames: log15.RecordKeyNames{
Time: structure.TimeKey,
Msg: structure.MessageKey,
Lvl: structure.LevelKey,
Msg: structure.MessageKey,
Lvl: structure.LevelKey,
}}
}
......@@ -54,7 +53,6 @@ func LogLineToRecord(keyvals ...interface{}) *log15.Record {
func RecordToLogLine(record *log15.Record) []interface{} {
return Concat(
Slice(
structure.TimeKey, record.Time,
structure.CallerKey, record.Call,
structure.LevelKey, record.Lvl.String(),
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment