Only creating expensive log message if DEBUG log level is really enabled
This commit is contained in:
parent
2df12c4984
commit
7226b0965d
|
@ -633,7 +633,9 @@ open class FinTsClient @JvmOverloads constructor(
|
|||
val prettyPrintMessageWithoutSensitiveData = removeSensitiveDataFromMessage(prettyPrintMessage, dialogContext)
|
||||
|
||||
|
||||
if (log.isDebugEnabled) {
|
||||
log.debug("${if (type == MessageLogEntryType.Sent) "Sending" else "Received"} message:\n$prettyPrintMessage")
|
||||
}
|
||||
|
||||
messageLogField.add(MessageLogEntry(prettyPrintMessageWithoutSensitiveData, timeStamp, dialogContext.customer))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue