Improve logging.
This commit is contained in:
parent
d8509f5c1f
commit
574be078ef
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue