From dedd67780b8d21d8b5741d2b4940d7019e23f10b Mon Sep 17 00:00:00 2001 From: 9seconds Date: Fri, 26 Mar 2021 16:31:42 +0300 Subject: [PATCH] Notify that blocklist were updated --- ipblocklist/firehol.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipblocklist/firehol.go b/ipblocklist/firehol.go index ee1d473..20dd0d8 100644 --- a/ipblocklist/firehol.go +++ b/ipblocklist/firehol.go @@ -95,6 +95,8 @@ func (f *Firehol) Run(updateEach time.Duration) { if err := f.update(); err != nil { f.logger.WarningError("cannot update blocklist", err) + } else { + f.logger.Info("blocklist was updated") } for { @@ -104,6 +106,8 @@ func (f *Firehol) Run(updateEach time.Duration) { case <-ticker.C: if err := f.update(); err != nil { f.logger.WarningError("cannot update blocklist", err) + } else { + f.logger.Info("blocklist was updated") } } }