Skip to content

Commit

Permalink
Merge pull request #32 from dmwm/logging-format-patch
Browse files Browse the repository at this point in the history
Update logging.go
  • Loading branch information
vkuznet authored Jun 18, 2024
2 parents 65578d8 + 9aaf80d commit c0a381e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func utcMsg(data []byte) string {
if UTC {
msg = fmt.Sprintf("[" + time.Now().UTC().String() + "] " + string(data))
} else {
msg = fmt.Sprintf("[" + time.Now().String() + "] " + string(data))
msg = fmt.Sprintf("[" + time.Now().Format(time.RFC3339Nano) + "] " + string(data))
// msg = fmt.Sprintf("[" + time.Now().UTC().Format("2006-01-02T15:04:05.999Z") + " UTC] " + string(data))
}
return msg
Expand Down

0 comments on commit c0a381e

Please sign in to comment.