refactor: set correct log level (#478)

* refactor: set correct log level

Signed-off-by: rare-magma <rare-magma@posteo.eu>

* docs: set correct pr number

Signed-off-by: rare-magma <rare-magma@posteo.eu>

---------

Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
Nuno
2024-10-23 10:39:10 +02:00
committed by GitHub
parent df42cccce7
commit f6f49b1fe7
3 changed files with 10 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ export default {
accessValidForDays: 90,
normalizeAccount(account) {
console.log(
console.debug(
'Available account properties for new institution integration',
{ account: JSON.stringify(account) },
);
@@ -66,7 +66,7 @@ export default {
},
sortTransactions(transactions = []) {
console.log(
console.debug(
'Available (first 10) transactions properties for new integration of institution in sortTransactions function',
{ top10Transactions: JSON.stringify(transactions.slice(0, 10)) },
);
@@ -74,7 +74,7 @@ export default {
},
calculateStartingBalance(sortedTransactions = [], balances = []) {
console.log(
console.debug(
'Available (first 10) transactions properties for new integration of institution in calculateStartingBalance function',
{
balances: JSON.stringify(balances),

View File

@@ -9,7 +9,7 @@ describe('IntegrationBank', () => {
let consoleSpy;
beforeEach(() => {
consoleSpy = jest.spyOn(console, 'log');
consoleSpy = jest.spyOn(console, 'debug');
});
describe('normalizeAccount', () => {

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [rare-magma]
---
Set correct log level for bank integration messages