Skip to content

Commit

Permalink
review feedback: use lambda for trace log in peerDiscoveryAgent
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Jan 31, 2024
1 parent 59da07a commit 663d30d
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,12 @@ static String deriveHost(final Endpoint sourceEndpoint, final Packet packet) {
.findFirst()
.orElseGet(
() -> {
LOG.trace(
"Ignoring \"From\" endpoint {} in ping packet. Using UDP source host {}",
pingPacketHost.orElse("not specified"),
sourceEndpoint.getHost());
LOG.atTrace()
.setMessage(
"Ignoring \"From\" endpoint {} in ping packet. Using UDP source host {}")
.addArgument(pingPacketHost.orElse("not specified"))
.addArgument(sourceEndpoint.getHost())
.log();
return sourceEndpoint.getHost();
});
}
Expand Down

0 comments on commit 663d30d

Please sign in to comment.