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 }),