Przeglądaj źródła

Notify that blocklist were updated

tags/v2.0.0-rc1
9seconds 5 lat temu
rodzic
commit
dedd67780b
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      ipblocklist/firehol.go

+ 4
- 0
ipblocklist/firehol.go Wyświetl plik

@@ -95,6 +95,8 @@ func (f *Firehol) Run(updateEach time.Duration) {
95 95
 
96 96
 	if err := f.update(); err != nil {
97 97
 		f.logger.WarningError("cannot update blocklist", err)
98
+	} else {
99
+		f.logger.Info("blocklist was updated")
98 100
 	}
99 101
 
100 102
 	for {
@@ -104,6 +106,8 @@ func (f *Firehol) Run(updateEach time.Duration) {
104 106
 		case <-ticker.C:
105 107
 			if err := f.update(); err != nil {
106 108
 				f.logger.WarningError("cannot update blocklist", err)
109
+			} else {
110
+				f.logger.Info("blocklist was updated")
107 111
 			}
108 112
 		}
109 113
 	}

Ładowanie…
Anuluj
Zapisz