Skip to content

Commit

Permalink
LOG -> log
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick committed Jul 18, 2024
1 parent 76ee875 commit cac218e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
import static org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint;

public class OpcUaProtocolAdapter implements ProtocolAdapter {
private static final Logger LOG = LoggerFactory.getLogger(OpcUaProtocolAdapter.class);
private static final @NotNull Logger log = LoggerFactory.getLogger(OpcUaProtocolAdapter.class);

private final @NotNull ProtocolAdapterInformation adapterInformation;
private final @NotNull OpcUaAdapterConfig adapterConfig;
Expand Down Expand Up @@ -117,13 +117,13 @@ public void start(
}
});
}).exceptionally(throwable -> {
LOG.error("Not able to connect and subscribe to OPC-UA server {}", adapterConfig.getUri(), throwable);
log.error("Not able to connect and subscribe to OPC-UA server {}", adapterConfig.getUri(), throwable);
stopInternal();
output.failStart(throwable, throwable.getMessage());
return null;
});
} catch (final Exception e) {
LOG.error("Not able to start OPC-UA client for server {}", adapterConfig.getUri(), e);
log.error("Not able to start OPC-UA client for server {}", adapterConfig.getUri(), e);
output.failStart(e, "Not able to start OPC-UA client for server " + adapterConfig.getUri());
}
}
Expand Down Expand Up @@ -205,7 +205,7 @@ public void stop(final @NotNull ProtocolAdapterStopInput input, final @NotNull P
try {
subscribeToNode(subscriptionConfig).get();
} catch (InterruptedException | ExecutionException e) {
LOG.error("Not able to recreate OPC-UA subscription after transfer failure", e);
log.error("Not able to recreate OPC-UA subscription after transfer failure", e);
}
}
});
Expand Down Expand Up @@ -330,7 +330,7 @@ private static NodeType getNodeType(ReferenceDescription ref) {
final BrowseResult browseResult = client.browse(browse).get();
return handleBrowseResult(client, parent, callback, depth, browseResult);
} catch (InterruptedException | ExecutionException e) {
LOG.error("Browsing nodeId={} failed: {}", browseRoot, e.getMessage(), e);
log.error("Browsing nodeId={} failed: {}", browseRoot, e.getMessage(), e);
return CompletableFuture.failedFuture(e);
}
}
Expand Down

0 comments on commit cac218e

Please sign in to comment.