diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/Mt940AccountTransactionsParser.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/Mt940AccountTransactionsParser.kt index 3a28e1db..24b865c4 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/Mt940AccountTransactionsParser.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/transactions/Mt940AccountTransactionsParser.kt @@ -23,8 +23,6 @@ open class Mt940AccountTransactionsParser( override fun parseTransactions(transactionsString: String, bank: BankData, account: AccountData): List { - setLogAppender(bank) - val accountStatements = mt940Parser.parseMt940String(transactionsString) return accountStatements.flatMap { mapToAccountTransactions(it, bank, account) } @@ -116,19 +114,6 @@ open class Mt940AccountTransactionsParser( } - protected open fun setLogAppender(bankDataOfCall: BankData) { - // TODO: this does not perfectly work as in parallel calls to Mt940AccountTransactionsParser for different account logAppender gets overwritten by the later call - mt940Parser.logAppender = logAppender?.let { logAppender -> - object : IMessageLogAppender { - - override fun logError(loggingClass: KClass<*>, message: String, e: Exception?) { - logAppender.logError(loggingClass, message, e) - } - - } - } - } - protected open fun logError(message: String, e: Exception?, bank: BankData) { logAppender?.let { logAppender -> logAppender.logError(Mt940AccountTransactionsParser::class, message, e)