From 2af11754c43e2e3cb32141f708c4f3d2451798ba Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Tue, 24 Oct 2023 10:16:33 +0100 Subject: [PATCH] plugins/videostream/VideoStream: Cleanup debug out. --- .../java/pt/lsts/neptus/plugins/videostream/VideoStream.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins-dev/videostream/src/java/pt/lsts/neptus/plugins/videostream/VideoStream.java b/plugins-dev/videostream/src/java/pt/lsts/neptus/plugins/videostream/VideoStream.java index 8be6ae5c72..1ba98c8cd3 100644 --- a/plugins-dev/videostream/src/java/pt/lsts/neptus/plugins/videostream/VideoStream.java +++ b/plugins-dev/videostream/src/java/pt/lsts/neptus/plugins/videostream/VideoStream.java @@ -634,8 +634,7 @@ private void openIPCamManagementPanel() { uri = new URI(camUrl); } catch (Exception e) { - NeptusLog.pub().warn("Camera URL is not valid: " + camUrl); - e.printStackTrace(); + NeptusLog.pub().warn("Camera URL is not valid: " + camUrl + " :: " + e.getMessage()); } ipCamPing = new JDialog(SwingUtilities.getWindowAncestor(VideoStream.this), I18n.text("Select IPCam")); @@ -654,7 +653,7 @@ private void openIPCamManagementPanel() { String host = uri.getHost(); String name = "Stream " + uri.getScheme() + "@" + uri.getPort(); Camera cam = new Camera(name, host, camUrl); - NeptusLog.pub().warn("Cam > " + cam + " | URI " + camUrl + " | " + cam.getUrl()); + NeptusLog.pub().warn("Cam > " + cam + " | host " + host+ " | URI " + camUrl + " | " + cam.getUrl()); Camera matchCam = cameraList.stream().filter(c -> c.getUrl().equalsIgnoreCase(cam.getUrl())) .findAny().orElse(null);