Skip to content

Commit

Permalink
Log router write config time
Browse files Browse the repository at this point in the history
  • Loading branch information
frobware committed Mar 11, 2021
1 parent eb5189c commit e9d22d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/router/template/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ func (r *templateRouter) commitAndReload() error {
reloadStart := time.Now()
err := r.writeConfig()
r.metricWriteConfig.Observe(float64(time.Now().Sub(reloadStart)) / float64(time.Second))
log.V(4).Info("writeConfig", "duration", time.Now().Sub(reloadStart).String())
return err
}(); err != nil {
return err
Expand Down

0 comments on commit e9d22d6

Please sign in to comment.