Skip to content

[BUG] Log messages are inaccurate: "Sent email to [email protected]" #6

@etagwerker

Description

@etagwerker

Hi there,

Small issue. When I submit an email through the ContactMailerWorker, I see this in the logs:

2023-11-21T19:45:23.688412+00:00 app[worker.1]: I, [2023-11-21T19:45:23.688364 #2]  INFO -- : Delivered mail 655d08d35b1d0_2143e8657e1@220dcdf7-d7e4-4ad8-9324-a173302847ea.mail (315.3ms)
2023-11-21T19:45:23.690711+00:00 app[worker.1]: 2 TID-1rze ContactMailerWorker JID-9142c0e6ed4e92158824f3fe INFO: Sent email to [email protected]
2023-11-21T19:45:23.690779+00:00 app[worker.1]: 2 TID-1rze ContactMailerWorker JID-9142c0e6ed4e92158824f3fe INFO: done: 0.404 sec

Expected

I'd expect the log to display the right email address: https://github.com/fastruby/ombu_labs-notifications/blob/main/app/mailers/contact_mailer.rb#L7-L9

Current

It is now saying that it sent an email to contact.email but that field is only used in the reply-to attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions