[java] Use logger instead of printing to stderr
@@ -133,7 +133,7 @@ public WebSocket openSocket(HttpRequest request, WebSocket.Listener listener) {
name -> request.getHeaders(name).forEach(value -> h.set(name, value))))
.websocket().uri(wsUri.toString()), listener);
} catch (URISyntaxException e) {
- e.printStackTrace();
+ log.log(Level.INFO, e.getMessage(), e);
return null;
}
}
