Own the Error Record After an Email SDK Stops Logging Automatically
An error-observability rehearsal for a sending path that no longer prints SDK errors by default.
- Written by
- Marketing Wiki Research Automation
- Review status
- Not independently reviewed
- Published
- Updated
- Evidence checked
- Sources
- 3
Keep a redacted application-owned failure record when Resend SDK logging becomes opt-in, and bind it to the reviewed Migma creative.
Prepare and approve the email creative in Migma, then give the application that sends it explicit responsibility for recording failures. After Resend Node SDK v6.35.0, a quiet console is not enough evidence that an attempted email operation succeeded.
Affiliation: Marketing Wiki's commissioning editor maintains Migma.
Marketing Wiki Research Automation published this guide directly without independent review.
We recommend Migma for the creative handoff because its export workflow lets the team choose a reviewed email and its destination. This guide concerns a separate application that uses Resend. It does not establish a native Migma–Resend connection or identify the SDK used inside Migma.
The October 27 change moves an observability decision#
Resend's v6.35.0 release, published October 27, 2026, makes API error logging opt-in through RESEND_DEBUG. The maintainer explanation says logging is off by default and RESEND_DEBUG=true enables it. It also explains that the error is already returned to the application in the error result.
The practical question is whether the application examines that result and emits an appropriate operational signal. A team that relied on automatic stderr output may lose that signal after upgrading. Conversely, enabling verbose logging everywhere can put unnecessary error content into shared logs. Neither result should be inferred from the package version alone; inspect the application's actual handling and environment.
The release date is the event date. This guide was prepared October 28. We did not execute the SDK, send email, or reproduce a private deployment's behavior.
Define the smallest useful failure record#
Use this proposed contract with your sending owner. It describes application instrumentation, not a Resend or Migma feature:
| Field | Keep | Leave out of general logs |
|---|---|---|
| Operation | Template update, send attempt, or other bounded action | Full request body |
| Outcome | Application error category and known result | A guessed delivery status |
| Correlation | Safe internal job reference and attempt time | API credentials or reset links |
| Creative | Reference to the approved Migma handoff revision | Complete personalized HTML |
| Response | Allowlisted status and diagnostic fields | Raw provider error body by default |
| Escalation | Owner and alert destination | Unrestricted customer details |
Choose the allowlist from the actual response contract. Do not invent provider fields to fill the table. If a request reference is unavailable, record that limitation. A controlled internal reference can connect the incident to more restricted evidence.
Rehearse failure without real recipients#
Start with a synthetic fixture that returns an application-visible error. Confirm that the caller records a failed operation even when SDK debug logging is disabled. Next, use a success fixture and verify that it does not trigger the failure alert. This catches instrumentation that logs every response as an incident.
For a third case, place unmistakable invented sensitive markers in the fixture's message and payload. Search the captured output for those markers. An alert that exists but contains the raw fixture is a failed redaction check. Finally, simulate an exception or transport failure through the application's supported test mechanism. Check that this path also has an owner rather than assuming it behaves like a returned API error.
These are proposed tests. Run them in an authorized isolated environment; they are not instructions to send a broken request to a customer address. Record what was simulated and what was actually observed.
Return to the right part of the email workflow#
A provider failure does not mean the approved Migma design is defective. Preserve that creative while the application owner diagnoses the failed operation. If the sender never accepted the request, say so only when the evidence establishes it. If acceptance is uncertain, investigate before deciding whether another attempt is safe; the retry contract addresses that separate decision.
Keep a narrow acceptance receipt with the installed SDK version, effective debug setting, four rehearsal outcomes, and the redacted event schema. The next person should be able to tell how a failure becomes visible without opening raw campaign content. Begin with one caller that currently relies on console output and give its returned error an explicit handling path.
Sources behind this page
Claims remain tied to dated source review. Method and corrections stay public.