-
Notifications
You must be signed in to change notification settings - Fork 941
Add Logger delivery method #856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@zacholauson Cool, but maybe this should use |
Good point @carsonreinke, not sure why I didn't think of using Logger. I'll update this later today. |
@bf4 could you elaborate as to what you think would be difficult to maintain? Is there something you'd like to see changed in the code? |
Fixed merge conflicts. |
@jeremy @mikel @grosser @jeremyevans thoughts on having a STDOUT delivery method baked in, and the implementation? |
I think a STDOUT or a logger delivery method is fine, but the current name is misleading. This is currently a Logger delivery method, which just happens to have a default logger which logs to STDOUT. I think this facility should it should probably be renamed ( In terms of the implementation, this creates an unused Logger instances if the user passes in their own logger. It would be best to try to avoid that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks more like 'change global state so that this test passes', whatever test unsets them should clean them up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this is from every other delivery method spec except for Mail::SendMail. While it doesn't seem to be required to be in the logger spec file, if I remove it from all delivery method specs, I get intermittent failures. I'll have to look more into why this exists.
In rails I am used to seeing the email in the logs during development, but I assume that's rails doing stuff and not mail itself ... 👍 |
I agree @jeremyevans, I'll update this to be Logger.
I didn't even think about that, thanks for catching that, I'll fix it. |
Fixed merge conflicts. |
Fixed merge conflicts. |
Fixed merge conflicts. |
Thanks @zacholauson!! |
Tested against: 1.8.7, 1.9.3, 2.1.5, and 2.2.0
Here is how it looks when an email gets delivered:
