From e1e4cbe30aaead4e973dfd205576bcd1df32427c Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 17 Apr 2021 19:23:19 +0200 Subject: [PATCH] Added bank code and customer ID to log message to be able to track to which account a log message belongs --- .../kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt index 7bc89e3b..bc8b634a 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/log/MessageLogCollector.kt @@ -36,7 +36,7 @@ open class MessageLogCollector { val timeStamp = Date() val prettyPrintMessage = prettyPrintHbciMessage(message) - log.debug { "${if (type == MessageLogEntryType.Sent) "Sending" else "Received"} message:\r\n" + prettyPrintMessage } + log.debug { "${if (type == MessageLogEntryType.Sent) "[${bank.bankCode}-${bank.customerId}] Sending" else "Received"} message:\r\n" + prettyPrintMessage } messageLog.add(MessageLogEntry(prettyPrintMessage, type, timeStamp, bank)) }