mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
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:
commit
6bc965a1aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue