Skip to content

Commit

Permalink
fix: populate countries after logger setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Jun 16, 2024
1 parent 90ac370 commit 04456e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import (
)

func main() {
codeData := &data.CodeData{}
codeData.Populate()

logger := tint.NewHandler(os.Stdout, &tint.Options{
Level: slog.LevelInfo,
})
slog.SetDefault(slog.New(logger))

codeData := &data.CodeData{}
codeData.Populate()

slog.Info("starting the bot...", slog.String("disgo.version", disgo.Version))

client, err := disgo.New(os.Getenv("FLAG_MASHUP_TOKEN"),
Expand Down

0 comments on commit 04456e4

Please sign in to comment.