summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
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