Merge pull request #372 from Icinga/bugfix/heartbeat-loss-log-func

Fix use of wrong log function on heartbeat loss
This commit is contained in:
Julian Brost 2021-09-23 10:53:47 +02:00 committed by GitHub
commit 6bc965a1aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ func (h *Heartbeat) controller(ctx context.Context) {
h.beat.Broadcast()
case <-time.After(timeout):
if h.active {
h.logger.Warn("Lost Icinga 2 heartbeat", zap.Duration("timeout", timeout))
h.logger.Warnw("Lost Icinga 2 heartbeat", zap.Duration("timeout", timeout))
h.lost.Broadcast()
h.active = false
} else {