Skip to content

Commit ce25beb

Browse files
committed
fix(auth-service): name email recipient log field consistently
The client-branded OTP delivery log exposed its recipient under the generic to field, while related authentication logs use email. This made structured log queries inconsistent.\n\nPublish the same recipient value under email and document the operator-facing field rename.\n\nCo-authored-by: OpenAI Codex <codex@openai.com>
1 parent fa5105a commit ce25beb

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'ePDS': minor
3+
---
4+
5+
Email delivery logs use a consistent recipient field.
6+
7+
**Affects:** Operators
8+
9+
**Operators:** Update structured-log queries for `Sent client-branded OTP email` to read the recipient from `email` instead of `to`.

packages/auth-service/src/email/sender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class EmailSender {
133133
html: branded.html,
134134
})
135135
logger.info(
136-
{ to, clientId: opts.clientId },
136+
{ email: to, clientId: opts.clientId },
137137
'Sent client-branded OTP email',
138138
)
139139
return

0 commit comments

Comments
 (0)