From c97ca7b18c385e4a308bc508ef739d5c7581a97f Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 25 Jan 2024 15:31:07 +0100 Subject: small fix --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index ba9b6c4..a31c459 100644 --- a/main.go +++ b/main.go @@ -218,9 +218,9 @@ func getResponse(url string) *http.Response { if err != nil { for i := 0; i < 4; i++ { if i == 0 { - log.Debug("getDetail: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) + log.Debug("getResponse: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) } else { - log.Warn("getDetail: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) + log.Warn("getResponse: Got error connecting to firebase/wikipedia. Retry: " + strconv.Itoa(i)) } resp2, err2 := http.Get(url) if err2 == nil { @@ -316,7 +316,7 @@ func (app *App) updateAllDiscussions() { } else if Story.Descendants > 10 || Story.Score > 10 { log.Infof(` updateAllDiscussions: There is a bug. Can't update discussion with id %d. - NOTE: Is this is happening again, probably the url was changed from wikipedia to a different source. + NOTE: If this is happening again, probably the url was changed from Wikipedia to a different source. %+v\n `, item_id, Story) } -- cgit v1.2.3