feat: add more logging
All checks were successful
ci/woodpecker/push/docker-deploy Pipeline was successful
ci/woodpecker/pr/docker-deploy Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-11-06 11:57:26 +01:00
parent f575e0cb46
commit 58723ed640
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -7,16 +7,17 @@
package app package app
import ( import (
"encoding/json"
"fmt"
"io"
"net/url"
"codeberg.org/lauralani/humble-bot/constants" "codeberg.org/lauralani/humble-bot/constants"
"codeberg.org/lauralani/humble-bot/db" "codeberg.org/lauralani/humble-bot/db"
"codeberg.org/lauralani/humble-bot/misc" "codeberg.org/lauralani/humble-bot/misc"
"codeberg.org/lauralani/humble-bot/models" "codeberg.org/lauralani/humble-bot/models"
"encoding/json"
"fmt"
"github.com/PuerkitoBio/goquery" "github.com/PuerkitoBio/goquery"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"io"
"net/url"
) )
func UpdateBundles() { func UpdateBundles() {
@ -63,6 +64,8 @@ func UpdateBundles() {
Msgf("Error handling humble bundle: %v", err) 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") log.Debug().Str("category", category).Msg("finished bundle update")
} }