Notify that blocklist were updated

This commit is contained in:
9seconds
2021-03-26 16:31:42 +03:00
parent d8d954bbe8
commit dedd67780b
+4
View File
@@ -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")
}
}
}