GoDoc and some typos...

This commit is contained in:
dhax 2017-10-22 21:56:36 +02:00
parent 9f37579562
commit 543b39f822
15 changed files with 37 additions and 19 deletions

View file

@ -1,3 +1,4 @@
// Package logging provides structured logging with logrus.
package logging
import (
@ -93,7 +94,7 @@ func (l *StructuredLoggerEntry) Write(status, bytes int, elapsed time.Duration)
l.Logger = l.Logger.WithFields(logrus.Fields{
"resp_status": status,
"resp_bytes_length": bytes,
"resp_elasped_ms": float64(elapsed.Nanoseconds()) / 1000000.0,
"resp_elapsed_ms": float64(elapsed.Nanoseconds()) / 1000000.0,
})
l.Logger.Infoln("request complete")