Improve logging.

This commit is contained in:
Stephan Schnabel 2022-01-04 19:38:39 +01:00
parent d8509f5c1f
commit 574be078ef
Signed by: stephan.schnabel
GPG key ID: E07AF5BA239FE543
2 changed files with 3 additions and 3 deletions

View file

@ -21,8 +21,8 @@ logger:
prefix: header. prefix: header.
names: names:
- x-request-id - x-request-id
- x-b3-traceId - x-b3-traceId
- x-b3-parentspanid - x-b3-parentspanid
- x-b3-spanid - x-b3-spanid
- x-b3-sampled - x-b3-sampled
``` ```

View file

@ -45,7 +45,7 @@ public class AuthenticationMdcFilter extends AbstractMdcFilter {
this.name = name.orElse(DEFAULT_NAME); this.name = name.orElse(DEFAULT_NAME);
this.attributes = attributes.orElseGet(Set::of); this.attributes = attributes.orElseGet(Set::of);
if (name.isPresent() || !this.attributes.isEmpty()) { if (name.isPresent() || !this.attributes.isEmpty()) {
log.info("Configured with name {} and attributes {}", name, attributes); log.info("Configured with name {} and attributes {}", this.name, this.attributes);
} }
} }