From 8c2359feb3b8b4bdf6f25b29727e110d23238b1d Mon Sep 17 00:00:00 2001 From: Reynold Morel Date: Thu, 2 Nov 2023 08:08:38 -0400 Subject: [PATCH] Remove isPresent call from log --- rskj-core/src/main/java/co/rsk/net/discovery/PeerExplorer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rskj-core/src/main/java/co/rsk/net/discovery/PeerExplorer.java b/rskj-core/src/main/java/co/rsk/net/discovery/PeerExplorer.java index 9ed512b7708..30befdb4057 100644 --- a/rskj-core/src/main/java/co/rsk/net/discovery/PeerExplorer.java +++ b/rskj-core/src/main/java/co/rsk/net/discovery/PeerExplorer.java @@ -165,7 +165,7 @@ synchronized void handleMessage(DiscoveryEvent event) { "type: [{}], " + "networkId: [{}]", state, event.getMessage().getMessageType(), - event.getMessage().getNetworkId().isPresent()); + event.getMessage().getNetworkId()); if (state != ExecState.RUNNING) { logger.warn("Cannot handle message as current state is {}", state);