mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-27 00:40:37 +00:00
!661 modify handle log level from warn to debug
Merge pull request !661 from LiWenzhen/handlelog
This commit is contained in:
commit
59d5526604
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user