From a52f93d292e9811ac2aeb4d9beebbdb58bc77daa Mon Sep 17 00:00:00 2001 From: Ivan FB Date: Tue, 7 Jul 2026 21:58:08 +0200 Subject: [PATCH] fix: log unwrapped-message json via structured zap field 401a767 left a printf-style call on the structured *zap.Logger (rm.logger.Debug("... %s", resStr)), which does not compile because resStr is a string, not a zap.Field. Pass it as zap.String instead so the CamelCase + retrieval-hint (JSON ABI) line builds again. This is the tip that status-go pins against nim-sds release/v0.3 (v0.3.1-rc.0). Co-Authored-By: Claude Opus 4.8 --- sds/sds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sds/sds.go b/sds/sds.go index 42f9f3c..f5c71e5 100644 --- a/sds/sds.go +++ b/sds/sds.go @@ -362,7 +362,7 @@ func (rm *ReliabilityManager) UnwrapReceivedMessage(message []byte) (*UnwrappedM } rm.logger.Debug("successfully unwrapped message") - rm.logger.Debug("Unwrapped message JSON: %s", resStr) + rm.logger.Debug("unwrapped message json", zap.String("json", resStr)) var unwrappedMessage UnwrappedMessage err := json.Unmarshal([]byte(resStr), &unwrappedMessage) if err != nil {