From 8c103c6c23c7be728554228c37a9b90aa3249efd Mon Sep 17 00:00:00 2001 From: Zak Shearman <34372536+ZakShearman@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:52:01 +0000 Subject: [PATCH] chore: add some test debug logging --- internal/gsallocation/common.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/gsallocation/common.go b/internal/gsallocation/common.go index de59dcc..666db0f 100644 --- a/internal/gsallocation/common.go +++ b/internal/gsallocation/common.go @@ -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" ) @@ -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{