mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 04:56:00 -04:00
modify handle log level from warn to debug
Signed-off-by: liwenzhen <liwenzhen3@huawei.com> Change-Id: I386777bd3d56b3a410935c67fb4beab16fa06a5b
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user