From ee0e3cf6e03e915bfc1f18f83ff9b47fa41a2314 Mon Sep 17 00:00:00 2001 From: xilesun <2013xile@gmail.com> Date: Thu, 20 Mar 2025 16:04:29 +0800 Subject: [PATCH] fix(verification): log --- .../src/server/otp-verification/sms/resource/sms-otp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-verification/src/server/otp-verification/sms/resource/sms-otp.ts b/packages/plugins/@nocobase/plugin-verification/src/server/otp-verification/sms/resource/sms-otp.ts index 8b66c4499d..97c63bd66a 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/server/otp-verification/sms/resource/sms-otp.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/server/otp-verification/sms/resource/sms-otp.ts @@ -82,7 +82,7 @@ async function create(ctx: Context, next: Next) { case 'RateLimit': return ctx.throw(429, ctx.t('You are trying so frequently, please slow down', { ns: namespace })); default: - console.error(error); + ctx.log.error(error); return ctx.throw( 500, ctx.t('Verification send failed, please try later or contact to administrator', { ns: namespace }),