Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22 from jodh-intel/use-nanosecond-timestamps
Browse files Browse the repository at this point in the history
logging: Switch to nanosecond timestamps
  • Loading branch information
laijs committed Mar 2, 2018
2 parents 3647ce2 + 3da3a5f commit e8b099e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func SetLoggingLevel(l string) error {

logrus.SetLevel(level)

throttlerLog.Logger.Formatter = &logrus.TextFormatter{TimestampFormat: time.RFC3339Nano}

throttlerLog.WithField("version", version).Info()

return nil
Expand Down

0 comments on commit e8b099e

Please sign in to comment.