Conversation
…essage will be sent in the header of any email that gets sent out becasue of that request.
There was a problem hiding this comment.
I'd suggest logging this at the LOG.trace() level instead, so that people can more easily control whether or not the email should be logged
|
These two issues have been fixed and the branch pushed again. |
|
Whoops, I lied before, forgot about making it trace level. Now they're both fixed. |
There was a problem hiding this comment.
We can do without the LOG_EMAILS_FOR_DEBUG. We can control the logging level for each class in the configuration for Singularity, so just putting it at trace should be enough.
Also for logging, you can so something more like this rather that using "string" + "string"
LOG.trace("Sending email: {}, to: {}, cc: {}", body, toList, ccList)There was a problem hiding this comment.
For readability I've found it to be easier to put the recipients first and the body last so you're not scrolling through a wall of HTML looking for the recipient at the end
|
Fixed |
There was a problem hiding this comment.
super nit-picky, but can we get rid of these extra new lines here and down by the LOG.trace
|
Not sure how those got there in the first place, but they're gone now. |
Now that Singularity has the capability to accept optional user messages for tasks, these messages can be included in any emails sent because of user actions with messages. This commit includes that ability.
It also includes the ability to set a variable, LOG_EMAILS_FOR_DEBUG - If this variable is set to true, all emails sent will be logged in the debug logs. This allows local testing of emails without an SMTP server.