summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradmin2024-01-25 15:31:07 +0100
committeradmin2024-01-25 15:31:07 +0100
commitc97ca7b18c385e4a308bc508ef739d5c7581a97f (patch)
tree2cb8cc6df2e8b53df5d782c4768439a057d91630
parent1eac387a4af90a9281741939aefb423c8c9ec084 (diff)
downloadcurious-crawler-c97ca7b18c385e4a308bc508ef739d5c7581a97f.tar.gz
small fix
-rw-r--r--main.go6
1 files 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)
}