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:
parent
cc99ebdbce
commit
e1e4cbe30a
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue