Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -591,17 +591,15 @@ private static Event updateEventMetadata(
/**
* Reports a dropped metadata value.
*
* <p>The parser's message quotes the peer's bytes, so the warning carries only the key and the
* exception type. A peer that streams malformed metadata would otherwise be able to write
* arbitrary content and a stack trace into the log on every event. The full exception is
* available at debug level.
* <p>The parser's message quotes the peer's bytes, so only the key and the exception type are
* logged, at any level. A peer that streams malformed metadata would otherwise be able to write
* arbitrary content and a stack trace into the log on every event.
*/
private static void logDroppedMetadata(A2AMetadataKey key, Exception e) {
logger.warn(
"Dropping unparseable A2A metadata for key {} ({})",
key.getType(),
e.getClass().getSimpleName());
logger.debug("Unparseable A2A metadata for key {}", key.getType(), e);
}

private static Event emptyEvent(InvocationContext invocationContext) {
Expand Down
Loading