Skip to content

Commit 79a8f53

Browse files
committed
fix(logging): add timestamp to debug logs in scrapeAndImportTransactions
1 parent c3a53f4 commit 79a8f53

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ function stableImportedId(companyId: string, accountNumber: string | undefined,
7878

7979
export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTransactionsContext) {
8080
function log(status: any, other?: Record<string, unknown>) {
81-
console.debug({bank: companyId, status, ...other});
81+
console.debug({
82+
datetime: new Date().toISOString(), bank: companyId, status, ...other,
83+
});
8284
}
8385

8486
try {

0 commit comments

Comments
 (0)