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

[stable23] Interpolate the log message also for logged exceptions #29961

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #29951

According to PSR-3 the log message can have placeholders that are
replaced from the context object. Our logger implementation did that for
all PSR-3 logger methods. The only exception was our custom `logException`.

Since PsrLoggerAdapter calls logException when an exception key is
present in the context object, log messages were no longer interpolated.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@nickvergessen nickvergessen added the 4. to release Ready to be released and/or waiting for tests to finish label Nov 29, 2021
@ChristophWurst ChristophWurst merged commit 7b142f7 into stable23 Nov 29, 2021
@ChristophWurst ChristophWurst deleted the backport/29951/stable23 branch November 29, 2021 19:04
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2022
6 tasks
@skjnldsv skjnldsv mentioned this pull request Jan 20, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants