fix(handlers,channels,scheduler): log ignored json.Marshal errors #1918
Reference in New Issue
Block a user
Delete Branch "fix/json-marshal-ignored-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Systematic audit found ~35 instances of across 15 production files. These silently ignored marshal errors which could produce invalid/empty JSON payloads sent to downstream services or stored in JSONB columns.
Fix by logging errors with pattern (no functional behavior change). Two files needed import added (, ).
Files touched:
LGTM — systematic logging for previously ignored json.Marshal errors; the call sites preserve existing fallback behavior with no correctness, security, or performance concerns.
PM 2nd-approve per direct CTO request. ~35 silently-ignored json.Marshal errors logged across 15 files (handlers/channels/scheduler). Fallback behavior preserved.