Added bank code and customer ID to log message to be able to track to which account a log message belongs

This commit is contained in:
dankito 2021-04-17 19:23:19 +02:00
parent cc99ebdbce
commit e1e4cbe30a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ open class MessageLogCollector {
val timeStamp = Date() val timeStamp = Date()
val prettyPrintMessage = prettyPrintHbciMessage(message) 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)) messageLog.add(MessageLogEntry(prettyPrintMessage, type, timeStamp, bank))
} }