diff --git a/notifier/alive_watcher.go b/notifier/alive_watcher.go index 3bad07b1b..82963ca69 100644 --- a/notifier/alive_watcher.go +++ b/notifier/alive_watcher.go @@ -2,6 +2,7 @@ package notifier import ( "context" + "fmt" "time" "github.com/moira-alert/moira" @@ -53,9 +54,13 @@ func (watcher *AliveWatcher) stateChecker(ctx context.Context) { func (watcher *AliveWatcher) checkNotifierState() { state, _ := watcher.database.GetNotifierState() + fmt.Println(state) if state != moira.SelfStateOK { watcher.notifierMetrics.MarkNotifierIsAlive(false) + fmt.Println("Marked as not alive") + return } watcher.notifierMetrics.MarkNotifierIsAlive(true) + fmt.Println("Marked as alive") }