Skip to content

Commit

Permalink
Add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
NghiaDTr committed Jul 23, 2024
1 parent 50fb534 commit ec88e16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions processor/src/mollie/payment.mollie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const createMolliePayment = async (paymentParams: PaymentCreateParams): P
errorMessage = 'SCTM - createMolliePayment - Failed to create payment with unknown errors';
}

logger.error(errorMessage);

throw new CustomError(400, errorMessage);
}
};
Expand Down

0 comments on commit ec88e16

Please sign in to comment.