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 <noreply@anthropic.com>
This commit is contained in:
Ivan FB 2026-07-07 21:58:08 +02:00
parent 401a7671f0
commit a52f93d292
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -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 {