Skip to content

Commit

Permalink
chore: add some debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Apr 8, 2024
1 parent 7d826f0 commit 62e9147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/app/badge/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"go.uber.org/zap"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"log"
"mc-player-service/internal/config"
"mc-player-service/internal/repository"
)
Expand Down Expand Up @@ -142,6 +143,8 @@ func (s *serviceImpl) SetActiveBadge(ctx context.Context, playerID uuid.UUID, ba
return fmt.Errorf("failed to get player badge: %w", err)
}

log.Printf("Looping badges: %+v", player.BadgeIDs)
log.Printf("Looking for badge: %s", badgeID)
for _, loopBadgeID := range player.BadgeIDs {
if loopBadgeID == badgeID {
if err := s.repo.SetActivePlayerBadge(ctx, playerID, &badgeID); err != nil {
Expand Down

0 comments on commit 62e9147

Please sign in to comment.