From d17677fa6536c7c7eb607baf1b11ffb701ebf49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Fri, 25 Nov 2022 08:44:28 +0000 Subject: [PATCH] Only log the server exception class and message on error --- .../openmicroscopy/shoola/env/data/DataServicesFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java b/src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java index a474330a4..b3a8f0c0e 100644 --- a/src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java +++ b/src/main/java/org/openmicroscopy/shoola/env/data/DataServicesFactory.java @@ -518,7 +518,8 @@ public void connect(UserCredentials uc) container.getRegistry().bind(LookupNames.PROCESSING_URL, val + "/qa/uploadProcessing/"); } } catch (ServerError e) { - msg = new LogMessage("Server error: ", e); + msg = new LogMessage(); + msg.println("Server error: " + e.serverExceptionClass + " - " + e.message); registry.getLogger().debug(this, msg); }