From 58723ed6405b4c8f5ffb91a64f461736227786a3 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Wed, 6 Nov 2024 11:57:26 +0100 Subject: [PATCH] feat: add more logging --- app/humble.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/humble.go b/app/humble.go index 7fcb21a..926afb8 100644 --- a/app/humble.go +++ b/app/humble.go @@ -7,16 +7,17 @@ package app import ( + "encoding/json" + "fmt" + "io" + "net/url" + "codeberg.org/lauralani/humble-bot/constants" "codeberg.org/lauralani/humble-bot/db" "codeberg.org/lauralani/humble-bot/misc" "codeberg.org/lauralani/humble-bot/models" - "encoding/json" - "fmt" "github.com/PuerkitoBio/goquery" "github.com/rs/zerolog/log" - "io" - "net/url" ) func UpdateBundles() { @@ -63,6 +64,8 @@ func UpdateBundles() { Msgf("Error handling humble bundle: %v", err) } } + + log.Info().Int("bundles", len(bundles)).Msg("finished queueing " + category + " bundles") }) log.Debug().Str("category", category).Msg("finished bundle update") }