From 5381a450e9c09bdb26d361fdc5c5ca9ccfc97f16 Mon Sep 17 00:00:00 2001 From: Owen Niles Date: Thu, 29 Sep 2022 10:49:10 -0400 Subject: [PATCH] Use default serialization rather than JSON serialization for struct containing Go channel (#7412) Use default serialization rather than JSON serialization for Go channel --- .../scaling-service/scaling_algorithms/default/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/scaling-service/scaling_algorithms/default/default.go b/backend/services/scaling-service/scaling_algorithms/default/default.go index 428079481ba..2adf68f2706 100644 --- a/backend/services/scaling-service/scaling_algorithms/default/default.go +++ b/backend/services/scaling-service/scaling_algorithms/default/default.go @@ -354,7 +354,7 @@ func (s *DefaultScalingAlgorithm) ProcessEvents(globalCtx context.Context, gorou contextFields := []interface{}{ zap.String("id", serverEvent.ID), zap.Any("type", serverEvent.Type), - zap.Any("data", serverEvent.Data), + zap.String("data", utils.Sprintf("%v", serverEvent.Data)), zap.String("region", serverEvent.Region), } logger.Errorw(utils.Sprintf("error running mandelbox assign action: %s", err), contextFields)