mirror of https://bitbucket.org/ausocean/av.git
revid: improve logging
This commit is contained in:
parent
26bb498917
commit
86c9e4d0a9
|
@ -142,7 +142,7 @@ func extractMeta(r string, log func(lvl int8, msg string, args ...interface{}))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log(logger.Warning, "No timestamp in reply")
|
log(logger.Warning, "No timestamp in reply")
|
||||||
} else {
|
} else {
|
||||||
log(logger.Debug, fmt.Sprintf("got timestamp: %v", t))
|
log(logger.Debug, "got timestamp", "ts", t)
|
||||||
mts.RealTime.Set(time.Unix(int64(t), 0))
|
mts.RealTime.Set(time.Unix(int64(t), 0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue