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

tillat nullable verdier i MDC #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

tillat nullable verdier i MDC #13

wants to merge 2 commits into from

Conversation

mortenbyhring
Copy link

gjør det enklere for applikasjoner å logge uten å vite hvilke uuid-er som er satt / tilgjengelig

…uten å vite hvilke uuid-er som er satt / tilgjengelig
@mortenbyhring mortenbyhring requested a review from a team as a code owner August 21, 2023 08:57
Comment on lines +179 to +185
MdcUtils.withLogFields(
"empty" to null,
"non-empty" to "not null"
) {
MDC.get("empty") shouldBe null
MDC.get("non-empty") shouldBe "not null"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Har du testet at de ikke logges? Jeg har opplevd at noen Java-klasser oppfører seg forskjellig med når null er eksplisitt satt i motsetning til å aldri bli satt.

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.

2 participants