From 80238c1c5e0b1ded84ea908c988d43b8509a66d8 Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 27 Oct 2022 23:19:17 +0200 Subject: reduce logging output --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b8b9ac4..84811fe 100644 --- a/main.go +++ b/main.go @@ -214,7 +214,11 @@ func getResponse(url string) *http.Response { response, err = http.Get(url) if err != nil { for i := 0; i < 4; i++ { - log.Warn("getDetail: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) + if i == 0 { + log.Debug("getDetail: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) + } else { + log.Warn("getDetail: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) + } resp2, err2 := http.Get(url) if err2 == nil { return resp2 -- cgit v1.2.3