From 4428a6b1ad5b9de121c1cce675f901213a1e5b51 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 24 Nov 2022 08:00:52 +0100 Subject: fix(sl20): remove full http response body from Exception message Reason: Exception messages are illustrated as UX errors --- .../gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eaaf_modules/eaaf_module_auth_sl20') diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java index a0b82793..c45245b1 100644 --- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java +++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java @@ -99,10 +99,10 @@ public class SL20HttpBindingUtils { return holder; } catch (final IOException | ParseException e) { - log.warn("SL20 response contains no )valid JSON", e); + log.warn("SL20 response contains no valid JSON. Body msg: {}", bodyMsg, e); throw new SlCommandoParserException(MessageFormat.format( - "SL20 response with http-code: {} with body: {} and generic response-processing error: {}", - httpStatusCode, bodyMsg, e.getMessage())); + "SL20 response with http-code: {} and generic response-processing error: {}", + httpStatusCode, e.getMessage())); } -- cgit v1.2.3