chore: 调整 debug 日志 (#6792)

This commit is contained in:
liaoxuezhi 2023-05-06 10:33:32 +08:00 committed by GitHub
parent fc86e4fb7b
commit f021f07ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',