mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 调整 debug 日志 (#6792)
This commit is contained in:
parent
fc86e4fb7b
commit
f021f07ab7
@ -431,13 +431,14 @@ type Category = 'api' | 'event';
|
||||
* @param ext 扩展信息
|
||||
*/
|
||||
export function debug(cat: Category, msg: string, ext?: object) {
|
||||
if (!isEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.groupCollapsed('[amis debug]', msg);
|
||||
console.debug(ext);
|
||||
console.groupEnd();
|
||||
|
||||
if (!isEnabled) {
|
||||
return;
|
||||
}
|
||||
const log = {
|
||||
cat,
|
||||
level: 'debug',
|
||||
|
Loading…
Reference in New Issue
Block a user