Skip to content

Commit

Permalink
zabbix trapper: fix duration log
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalaydrus committed Dec 12, 2023
1 parent 69949e9 commit 6ff8853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forwarder/zabbix-trapper-lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (z *ZabbixLookup) refresh() {
z.logger.Info().Msg("starting background cache refresh")
now := time.Now()
defer func() {
dur := now.Sub(time.Now())
dur := time.Since(now)
z.logger.Info().Str("duration", dur.String()).Msg("background cache refresh done")
}()
if driver, dsn, err := z.conf.Advanced.GetDSN(); err != nil {
Expand Down

0 comments on commit 6ff8853

Please sign in to comment.