From 7f5b3abb318cba9d8f11a45cb81faefd90380d51 Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Fri, 23 Sep 2022 20:36:44 +0400 Subject: [PATCH] fix: ignore critical error --- src/entities/OpolisPayStake.ts | 2 +- src/entities/Payroll.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/OpolisPayStake.ts b/src/entities/OpolisPayStake.ts index 0a52a3f..16565bb 100644 --- a/src/entities/OpolisPayStake.ts +++ b/src/entities/OpolisPayStake.ts @@ -59,7 +59,7 @@ export function withdrawStake( dbContract.version.toString() ); if (!dbStake) { - log.critical("withdrawStake: stake with stakeId: {} doesn't exist!", [ + log.error("withdrawStake: stake with stakeId: {} doesn't exist!", [ id.toString() ]); return; diff --git a/src/entities/Payroll.ts b/src/entities/Payroll.ts index 9fd67c6..e7ebde1 100644 --- a/src/entities/Payroll.ts +++ b/src/entities/Payroll.ts @@ -28,7 +28,7 @@ export function createPayroll( export function withdrawPayroll(id: BigInt, withdrawnAt: BigInt): void { let dbPayroll = Payroll.load(id.toString()); if (!dbPayroll) { - log.critical("withdrawPayroll: payroll with payrollId: {} doesn't exist!", [ + log.error("withdrawPayroll: payroll with payrollId: {} doesn't exist!", [ id.toString() ]); return;