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 13:37:30 +01:00
parent 58723ed640
commit a9580f9e03
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -7,18 +7,19 @@
package db package db
import ( import (
"codeberg.org/lauralani/humble-bot/misc"
"codeberg.org/lauralani/humble-bot/models"
"context" "context"
"database/sql" "database/sql"
"fmt" "fmt"
"os"
"time"
"codeberg.org/lauralani/humble-bot/misc"
"codeberg.org/lauralani/humble-bot/models"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"github.com/uptrace/bun/dialect/pgdialect" "github.com/uptrace/bun/dialect/pgdialect"
"github.com/uptrace/bun/driver/pgdriver" "github.com/uptrace/bun/driver/pgdriver"
"os"
"time"
) )
func Initialize() { func Initialize() {
@ -78,7 +79,7 @@ func Enqueue(bundle models.Bundle, category string) error {
return err return err
} }
log.Debug().Str("bundle", bundle.MachineName).Msg("added bundle to queue") log.Info().Str("bundle-name", bundle.MachineName).Msg("added bundle to queue")
return nil return nil
} }