Skip to content

Commit

Permalink
[log] fix year format (#3125)
Browse files Browse the repository at this point in the history
Refs #3060
  • Loading branch information
melekes authored and ebuchman committed Jan 14, 2019
1 parent 7b2c4bb commit 5f4d8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Special thanks to external contributors on this release:
### BREAKING CHANGES:

* CLI/RPC/Config
- [types] consistent field order of `CanonicalVote` and `CanonicalProposal`
- [types] consistent field order of `CanonicalVote` and `CanonicalProposal`

* Apps

Expand All @@ -23,3 +23,4 @@ Special thanks to external contributors on this release:
### IMPROVEMENTS:

### BUG FIXES:
- [log] \#3060 fix year format
2 changes: 1 addition & 1 deletion libs/log/tmfmt_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (l tmfmtLogger) Log(keyvals ...interface{}) error {
// D - first character of the level, uppercase (ASCII only)
// [2016-05-02|11:06:44.322] - our time format (see https://golang.org/src/time/format.go)
// Stopping ... - message
enc.buf.WriteString(fmt.Sprintf("%c[%s] %-44s ", lvl[0]-32, time.Now().Format("2016-01-02|15:04:05.000"), msg))
enc.buf.WriteString(fmt.Sprintf("%c[%s] %-44s ", lvl[0]-32, time.Now().Format("2006-01-02|15:04:05.000"), msg))

if module != unknown {
enc.buf.WriteString("module=" + module + " ")
Expand Down

0 comments on commit 5f4d8e0

Please sign in to comment.