Skip to content

Commit

Permalink
fix: fix crash with error in log
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Dec 3, 2024
1 parent 2eef69c commit 70c739c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/types/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ function replacer(_key: any, value: any) {
}
}

const loadOwnerOrdersLogger = getLogger("loadOwnerOrders");

async function loadOwnerOrders(
storage: DBService,
network: string
Expand All @@ -313,7 +311,8 @@ async function loadOwnerOrders(
version
);

loadOwnerOrdersLogger.info(
const log = getLogger("loadOwnerOrders");
log.info(
`Data size: ${str?.length}`,
`Owners: ${ordersPerOwner.size}`,
`Total orders: ${getOrdersCountFromOrdersPerOwner(ordersPerOwner)}`,
Expand Down

0 comments on commit 70c739c

Please sign in to comment.