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

Format nulls like slf4j #221

Merged
merged 3 commits into from
Dec 23, 2021
Merged

Conversation

josephw
Copy link

@josephw josephw commented Dec 23, 2021

A simple fix for #220 . There's an edge case here, if empty() were passed as an argument, but any fix for that would be more disruptive.

Fixes #220.

This is the simplest replacement for most cases. As an edge case,
passing empty() as an argument would now see it replaced by null.
However, unless arguments becomes a List<Optional>, it's impossible
to distinguish the two cases, and that's an unlikely case.
@codeclimate
Copy link

codeclimate bot commented Dec 23, 2021

Code Climate has analyzed commit bb71f14 and detected 0 issues on this pull request.

View more on Code Climate.

@valfirst valfirst self-requested a review December 23, 2021 11:42
@valfirst valfirst merged commit 508fd50 into valfirst:master Dec 23, 2021
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.

LoggingEvent#getFormattedMessage() doesn't format nulls the same way as SLF4J
2 participants