From 88c40e130e2de3ac4cab6ca73687a6e83b86c71c Mon Sep 17 00:00:00 2001 From: Akmal Date: Tue, 9 Jul 2024 07:33:29 +0700 Subject: [PATCH] Show statuscode too --- handlers/scraper/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/scraper/data.go b/handlers/scraper/data.go index ea2b306..65f9df3 100644 --- a/handlers/scraper/data.go +++ b/handlers/scraper/data.go @@ -149,7 +149,7 @@ func (i *InstaData) ScrapeData() error { } } } - log.Error().Str("postID", i.PostID).Err(err).Msg("Failed to scrape data from remote scraper") + log.Error().Str("postID", i.PostID).Int("status", res.StatusCode()).Err(err).Msg("Failed to scrape data from remote scraper") } req.Reset()