Skip to content

Commit

Permalink
GROUNDWORK-3991 log durations units
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Sumkin committed Jan 17, 2025
1 parent fbaa31f commit aa5a8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logzer/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (h *SLogHandler) Handle(ctx context.Context, r slog.Record) error {
case slog.KindBool:
_ = e.Bool(attr.Key, attr.Value.Bool())
case slog.KindDuration:
_ = e.Dur(attr.Key, attr.Value.Duration())
_ = e.Str(attr.Key, attr.Value.Duration().String())
case slog.KindFloat64:
_ = e.Float64(attr.Key, attr.Value.Float64())
case slog.KindInt64:
Expand Down
4 changes: 2 additions & 2 deletions services/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ func GetAgentService() *AgentService {
Any("connector", agentService.Connector).
Any("suppress", config.Suppress).
Bool("tlsClientInsecure", clients.HttpClientTransport.TLSClientConfig.InsecureSkipVerify).
Dur("httpClientTimeout", clients.HttpClient.Timeout).
Dur("httpClientTimeoutGW", clients.HttpClientGW.Timeout).
Str("httpClientTimeout", clients.HttpClient.Timeout.String()).
Str("httpClientTimeoutGW", clients.HttpClientGW.Timeout.String()).
Msg("starting with config")
})

Expand Down

0 comments on commit aa5a8a6

Please sign in to comment.