mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
A misbehaving Withings upstream that returns a multi-MB error body could bloat any AuditLog.details row that captured the thrown message. Apply the cap inside the constructor so every downstream audit, notification, and pg-boss retry path inherits the bound without touching call sites. Closes the v1.4.42 L-1 carry-over. A regression test asserts the 1024-char cap for a 4000-char upstreamError while preserving the "Withings <verb> error: <status>" prefix the legacy regex parser depends on.