Skip to content

Commit

Permalink
Merge pull request #2 from weaveworks/timestamp
Browse files Browse the repository at this point in the history
switch to more human readable timestamp 2006-01-02 15:04:05
  • Loading branch information
Jake Klein committed Feb 10, 2021
2 parents 2811824 + 4e9043a commit de93596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Expand Up @@ -177,7 +177,7 @@ func label(format, label string) string {

func labelWithTime(format, label string) string {
t := time.Now()
rfct := t.Format(time.RFC3339)
rfct := t.Format("2006-01-02 15:04:05")
if !strings.Contains(format, "\n") {
format = fmt.Sprintf("%s%s", format, "\n")
}
Expand Down

0 comments on commit de93596

Please sign in to comment.