From de4decd78ce8f00ec1a006b601351bee7517aa9a Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 23 Nov 2022 08:56:53 +0100 Subject: fix(sl20): use valid encoded log-message parameters --- .../gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eaaf_modules') 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 96fd34e8..a0b82793 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 @@ -93,7 +93,7 @@ public class SL20HttpBindingUtils { try { //extract JSON body from defined http error-codes bodyMsg = EntityUtils.toString(response.getEntity()); - log.info("SL20 response with http-code: {0} and errorMsg: {1}", httpStatusCode, bodyMsg); + log.info("SL20 response with http-code: {} and errorMsg: {}", httpStatusCode, bodyMsg); Sl20ResponseHolder holder = new Sl20ResponseHolder( JsonMapper.getMapper().readTree(bodyMsg), response.getStatusLine()); return holder; @@ -101,7 +101,7 @@ public class SL20HttpBindingUtils { } catch (final IOException | ParseException e) { log.warn("SL20 response contains no )valid JSON", e); throw new SlCommandoParserException(MessageFormat.format( - "SL20 response with http-code: {0} with body: {1} and generic response-processing error: {2}", + "SL20 response with http-code: {} with body: {} and generic response-processing error: {}", httpStatusCode, bodyMsg, e.getMessage())); } @@ -109,7 +109,7 @@ public class SL20HttpBindingUtils { } else { //all other HTTP StatusCodes throw new SlCommandoParserException(MessageFormat.format( - "SL20 response with http-code: {0} and errorMsg: {1}", + "SL20 response with http-code: {} and errorMsg: {}", httpStatusCode, EntityUtils.toString(response.getEntity()))); } -- cgit v1.2.3