Use RFC3339Nano for timestamps

Signed-off-by: Emmanuel Briney <emmanuel.briney@docker.com>
This commit is contained in:
Emmanuel Briney 2021-11-26 16:41:51 +01:00
parent 46ef83c979
commit e254145257

View File

@ -66,7 +66,7 @@ func logQueryHandler(l *connListener) {
}
func (msg *logEntry) String() string {
return fmt.Sprintf("%s,%s;%s", msg.time.Format(time.RFC3339), msg.source, msg.msg)
return fmt.Sprintf("%s,%s;%s", msg.time.Format(time.RFC3339Nano), msg.source, msg.msg)
}
func ringBufferHandler(ringSize, chanSize int, logCh chan logEntry, queryMsgChan chan queryMessage) {