From 27e69a972ea1d30d0822704cb434f88e63a83092 Mon Sep 17 00:00:00 2001 From: Eduardo Villani Date: Thu, 21 May 2026 11:23:58 -0300 Subject: [PATCH] fix(SUP-7456): fix grpc code logging causing mapper_parsing_exception in logzio zap.Any on codes.Code (a named uint32 type) falls through to the fmt.Stringer case and logs the value as a string (e.g. "Unavailable"), conflicting with the existing long mapping for json.code in Logz.io. Replace with zap.Uint32 to preserve the numeric value for the existing mapping, and add grpc_code as a human-readable string field. Co-Authored-By: Claude Sonnet 4.6 --- internal/core/services/events/events_forwarder_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/core/services/events/events_forwarder_service.go b/internal/core/services/events/events_forwarder_service.go index afe56b0e..e4228fd1 100644 --- a/internal/core/services/events/events_forwarder_service.go +++ b/internal/core/services/events/events_forwarder_service.go @@ -185,7 +185,8 @@ func (es *EventsForwarderService) forwardRoomEvent( reportRoomEventForwardingFailed(scheduler.Game, event.SchedulerID, code.String()) es.logger.Error(fmt.Sprintf("Failed to forward room events for room %s and scheduler %s", event.RoomID, event.SchedulerID), zap.Error(err), - zap.Any("code", code)) + zap.Uint32("code", uint32(code)), + zap.String("grpc_code", code.String())) return err }