Skip to content

Commit

Permalink
fix: create logger instance inside of the function (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Dec 3, 2024
1 parent 4524b88 commit 8dfdb6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,11 @@ function replacer(_key: any, value: any) {
}
}

const loadOwnerOrdersLogger = getLogger("loadOwnerOrders");

async function loadOwnerOrders(
storage: DBService,
network: string
): Promise<OrdersPerOwner> {
const loadOwnerOrdersLogger = getLogger("loadOwnerOrders");
// Get the owner orders
const db = storage.getDB();
const str = await db.get(
Expand Down

0 comments on commit 8dfdb6a

Please sign in to comment.