Skip to content
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

On Exception only log the email ID at error level and log the whole email at trace level #291

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

JimPanic
Copy link
Contributor

Only log the whole contents of an Email object on trace log level instead of error. Otherwise the whole email is printed to the logs, which can blow up the amount of logs quite a bit for services sending emails automatically.

Alternatively, the Email.toString() method could be changed to actually not put in all the contents of text/html bodies.

Only log the whole contents of an `Email` object on `trace` log level instead of `error`. Otherwise the whole email is printed to the logs, which can blow up the amount of logs quite a bit for services sending emails automatically.
@bbottema bbottema merged commit f30be45 into bbottema:develop Sep 30, 2020
@bbottema bbottema changed the title Decrease size of log output On Exception only log the email ID at error level and log the whole email at trace level Oct 25, 2020
@bbottema bbottema added this to the 6.4.4 milestone Oct 25, 2020
@bbottema
Copy link
Owner

Released in 6.4.4.

@piefel
Copy link

piefel commented Dec 15, 2020

You mention only size of logs here. Please let me raise the awareness that this was also quite a serious breach in data confidentiality. In my company, we are not allowed to log personal data (except under very special circumstances), and a whole e-mail naturally contains quite a lot of possibly sensitive data.

@bbottema
Copy link
Owner

Agreed. You could still still suppress this logging using regular log config, but that would have been a workaround. Now this is fixed at the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants