diff --git a/handlers/scraper/data.go b/handlers/scraper/data.go index e934b7a..166294c 100644 --- a/handlers/scraper/data.go +++ b/handlers/scraper/data.go @@ -173,7 +173,9 @@ func (i *InstaData) ScrapeData() error { } slog.Error("Failed to scrape data from remote scraper", "postID", i.PostID, "status", res.StatusCode, "err", err) } - slog.Error("Failed when trying to scrape data from remote scraper", "postID", i.PostID, "err", err) + if err != nil { + slog.Error("Failed when trying to scrape data from remote scraper", "postID", i.PostID, "err", err) + } } client := http.Client{Transport: transport, Timeout: timeout}