From c061bec6d806f7b7ba340684319a623580cdc166 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Tue, 12 Feb 2019 19:22:17 +0300 Subject: [PATCH] Lower down logging noise when idle. --- filter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter.go b/filter.go index dcdd40be..84db3a47 100644 --- a/filter.go +++ b/filter.go @@ -166,7 +166,7 @@ func (filter *filter) update(force bool) (bool, error) { return false, nil } - log.Printf("Downloading update for filter %d from %s", filter.ID, filter.URL) + log.Tracef("Downloading update for filter %d from %s", filter.ID, filter.URL) resp, err := client.Get(filter.URL) if resp != nil && resp.Body != nil { @@ -203,7 +203,7 @@ func (filter *filter) update(force bool) (bool, error) { // Check if the filter has been really changed if reflect.DeepEqual(filter.Rules, rules) { - log.Printf("Filter #%d at URL %s hasn't changed, not updating it", filter.ID, filter.URL) + log.Tracef("Filter #%d at URL %s hasn't changed, not updating it", filter.ID, filter.URL) return false, nil }