use mdc AttributeKey from captureMdcAttributes
This commit is contained in:
parent
d0386fbf61
commit
3b0231bc4d
|
|
@ -189,7 +189,7 @@ public final class LogEventMapper {
|
||||||
|
|
||||||
for (Map.Entry<String, AttributeKey<String>> entry : captureMdcAttributes.entrySet()) {
|
for (Map.Entry<String, AttributeKey<String>> entry : captureMdcAttributes.entrySet()) {
|
||||||
Object value = context.get(entry.getKey());
|
Object value = context.get(entry.getKey());
|
||||||
setAttributeOrEventName(builder, getMdcAttributeKey(entry.getKey()), value);
|
setAttributeOrEventName(builder, entry.getValue(), value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue