Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
chore: add some test debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakShearman committed Mar 28, 2024
1 parent 49e3878 commit 8c103c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gsallocation/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/emortalmc/kurushimi/internal/utils"
pb "github.com/emortalmc/proto-specs/gen/go/model/matchmaker"
v13 "k8s.io/apimachinery/pkg/apis/meta/v1"
"log"
"strconv"
"sync"
)
Expand Down Expand Up @@ -45,6 +46,9 @@ func AllocateServer(ctx context.Context, allocationClient v1.GameServerAllocatio
return fmt.Errorf("allocation was not successful: %s", allocation.State)
}

log.Printf("Allocated: %+v", allocation)
log.Printf("Metadata: %+v", allocation.Metadata)

protocolVersion, versionName := parseVersions(allocation.Metadata.Annotations)

match.Assignment = &pb.Assignment{
Expand Down

0 comments on commit 8c103c6

Please sign in to comment.