Skip to content

Commit d010ef3

Browse files
committed
Refactor: Enhance SES notification validation and type handling.
1 parent c0280c4 commit d010ef3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aws-ses-sender/api/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ func createResultEventHandler(c fiber.Ctx) error {
172172
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": "SES message_id not found"})
173173
}
174174

175+
// Log notification type for monitoring
176+
log.Printf("Received %s notification from SES for message %s", sesNotification.NotificationType, sesNotification.Mail.MessageId)
177+
175178
// Find request_id from headers
176179
var reqId uint
177180
for _, header := range sesNotification.Mail.Headers {

0 commit comments

Comments
 (0)