Skip to content

Commit b2b9ab2

Browse files
committed
Add date and timezone to peer logging formatter
Change-Id: Ic57436749e2029af325fa17326e13a17f89d269d Signed-off-by: Will Lahti <[email protected]>
1 parent cfdaf0c commit b2b9ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flogging/logging.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func DefaultLoggingLevel() logging.Level {
9191
func init() {
9292

9393
format := logging.MustStringFormatter(
94-
"%{color}%{time:15:04:05.000} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}",
94+
"%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}",
9595
)
9696

9797
backend := logging.NewLogBackend(os.Stderr, "", 0)

0 commit comments

Comments
 (0)