summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20/src
diff options
context:
space:
mode:
authorThomas <>2022-11-23 08:56:53 +0100
committerThomas <>2022-11-23 08:56:53 +0100
commitde4decd78ce8f00ec1a006b601351bee7517aa9a (patch)
tree96a3fb6eb51a0e15d254228dbe4dfee837ccb2fa /eaaf_modules/eaaf_module_auth_sl20/src
parentbff48acd07d788008fe729f99ae263a4ed42533d (diff)
downloadEAAF-Components-de4decd78ce8f00ec1a006b601351bee7517aa9a.tar.gz
EAAF-Components-de4decd78ce8f00ec1a006b601351bee7517aa9a.tar.bz2
EAAF-Components-de4decd78ce8f00ec1a006b601351bee7517aa9a.zip
fix(sl20): use valid encoded log-message parameters
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20/src')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/utils/SL20HttpBindingUtils.java6
1 files changed, 3 insertions, 3 deletions
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())));
}