Skip to content

Commit

Permalink
refactor: time encoder layout (format: 23:33:50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 18, 2024
1 parent 4b4b26d commit 7b687aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions local-interchain/interchain/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func DumpChainsInfoToLogs(configDir string, config *types.Config, chains []ibc.C
func InitLogger(logFile *os.File) (*zap.Logger, error) {
// Production logger that saves logs to file and console.
pe := zap.NewProductionEncoderConfig()
pe.EncodeTime = zapcore.TimeEncoderOfLayout(time.TimeOnly)

fileEncoder := zapcore.NewJSONEncoder(pe)
consoleEncoder := zapcore.NewConsoleEncoder(pe)
Expand Down

0 comments on commit 7b687aa

Please sign in to comment.