Skip to content

Commit

Permalink
Merge pull request #86 from hashicorp/b-const-move
Browse files Browse the repository at this point in the history
Change TimeFormatPlain back to TimeFormat
  • Loading branch information
evanphx authored Jan 8, 2021
2 parents 15ae6c5 + 76e3c80 commit a2184e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"github.com/fatih/color"
)

// TimeFormatPlain is the time format to use for plain (non-JSON) output.
// TimeFormat is the time format to use for plain (non-JSON) output.
// This is a version of RFC3339 that contains millisecond precision.
const TimeFormatPlain = "2006-01-02T15:04:05.000Z0700"
const TimeFormat = "2006-01-02T15:04:05.000Z0700"

// TimeFormatJSON is the time format to use for JSON output.
// This is a version of RFC3339 that contains microsecond precision.
Expand Down Expand Up @@ -115,7 +115,7 @@ func newLogger(opts *LoggerOptions) *intLogger {
l := &intLogger{
json: opts.JSONFormat,
name: opts.Name,
timeFormat: TimeFormatPlain,
timeFormat: TimeFormat,
disableTime: opts.DisableTime,
mutex: mutex,
writer: newWriter(output, opts.Color),
Expand Down

0 comments on commit a2184e5

Please sign in to comment.