diff options
author | Linnea Gräf <nea@nea.moe> | 2024-02-15 21:59:56 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-02-15 21:59:56 +0100 |
commit | 277643f8c39ad02d9485f7fc9039243f098ec383 (patch) | |
tree | b14325e5188a0998510f15ece249c377c9090368 /src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | |
parent | ebe98ada20e5de258f5c4eee6bfa7f8ae79489b9 (diff) | |
download | LocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.tar.gz LocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.tar.bz2 LocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.zip |
use higher priority and add logging
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/LedgerLogger.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/LedgerLogger.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt index 548b09d..7690d25 100644 --- a/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt +++ b/src/main/kotlin/moe/nea/ledger/LedgerLogger.kt @@ -33,6 +33,7 @@ class LedgerLogger { val entries = JsonArray() fun logEntry(entry: LedgerEntry) { + Ledger.logger.info("Logging entry of type ${entry.transactionType}") entries.add(entry.intoJson()) commit() } @@ -41,7 +42,7 @@ class LedgerLogger { try { file.writeText(gson.toJson(entries)) } catch (ex: Exception) { - ex.printStackTrace() + Ledger.logger.error("Could not save file", ex) } } |