diff options
| author | admin | 2024-01-25 15:31:07 +0100 |
|---|---|---|
| committer | admin | 2024-01-25 15:31:07 +0100 |
| commit | c97ca7b18c385e4a308bc508ef739d5c7581a97f (patch) | |
| tree | 2cb8cc6df2e8b53df5d782c4768439a057d91630 | |
| parent | 1eac387a4af90a9281741939aefb423c8c9ec084 (diff) | |
| download | curious-crawler-c97ca7b18c385e4a308bc508ef739d5c7581a97f.tar.gz | |
small fix
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) } |
