Skip to content

Commit

Permalink
Remove isPresent call from log
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Nov 2, 2023
1 parent cc48ea8 commit 8c2359f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ synchronized void handleMessage(DiscoveryEvent event) {
"type: [{}], " +
"networkId: [{}]",
state, event.getMessage().getMessageType(),
event.getMessage().getNetworkId().isPresent());
event.getMessage().getNetworkId());

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.

if (state != ExecState.RUNNING) {
logger.warn("Cannot handle message as current state is {}", state);
Expand Down

0 comments on commit 8c2359f

Please sign in to comment.