Skip to content

Commit

Permalink
FDP-94: Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperkamerling committed Nov 16, 2023
1 parent ad7e964 commit c909718
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void handleIncomingResponse(final ProxyServerResponseMessage proxyServerR
connection.setSoapResponse("Security check has failed.");
}
} else {
LOGGER.error("Cached connection is null");
LOGGER.error("No connection found in cache for id.");
}
} catch (final ConnectionNotFoundInCacheException e) {
LOGGER.error("ConnectionNotFoundInCacheException", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ProxyRequestKafkaSender(
private val topic = topicConfiguration.outgoing.requests

fun send(requestMessage: ProxyServerRequestMessage) {
logger.debug("SOAP payload: ${requestMessage.soapPayload} to $topic")
logger.debug { "SOAP payload: ${requestMessage.soapPayload} to $topic" }
kafkaTemplate.send(topic, requestMessage.constructSignedString())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ProxyResponseKafkaSender(
private val topic = topicConfiguration.outgoing.responses

fun send(responseMessage: ProxyServerResponseMessage) {
logger.debug("SOAP payload: ${responseMessage.soapResponse} to $topic")
logger.debug { "SOAP payload: ${responseMessage.soapResponse} to $topic" }
kafkaTemplate.send(topic, responseMessage.constructSignedString())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProxyServerResponseMessage(connectionId: String, val soapResponse: String)
fun createInstanceFromString(string: String): ProxyServerResponseMessage {
val split = string.split(SEPARATOR)
val numTokens = split.size
logger.debug("split.length: {}", numTokens)
logger.debug { "split.length: ${numTokens}" }
if (numTokens < 3) {
throw ProxyMessageException(
"Invalid number of tokens, don't try to create ProxyServerResponseMessage"
Expand Down

0 comments on commit c909718

Please sign in to comment.