From 4881aa35ce9332aca00c6b04a55c3bc21a5f5573 Mon Sep 17 00:00:00 2001 From: liwenzhen Date: Wed, 31 Aug 2022 14:37:22 +0800 Subject: [PATCH] modify handle log level from warn to debug Signed-off-by: liwenzhen Change-Id: I386777bd3d56b3a410935c67fb4beab16fa06a5b --- runtime/main/model/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/main/model/index.ts b/runtime/main/model/index.ts index d7ea9141..17e26852 100644 --- a/runtime/main/model/index.ts +++ b/runtime/main/model/index.ts @@ -355,11 +355,11 @@ export default class Vm { */ public $on(type: string, handler: Function): void { if (typeof type !== 'string') { - Log.warn(`Invalid parameter type: The type of 'type' should be string, not ${typeof type}.`); + Log.debug(`Invalid parameter type: The type of 'type' should be string, not ${typeof type}.`); return; } if (typeof handler !== 'function') { - Log.warn(`Invalid parameter type: The type of 'handler' should be function, not ${typeof handler}.`); + Log.debug(`Invalid parameter type: The type of 'handler' should be function, not ${typeof handler}.`); return; } const events = this.__vmEvents;