fix:修复log在打包状态下不打印的问题

This commit is contained in:
anfe 2024-05-13 17:51:57 +08:00
parent 21c315b347
commit e676e66fd2

View File

@ -14,6 +14,7 @@ class AppLog {
_onlyError = onlyError ?? false;
}
static log(String msg,{bool? error}){
DebugConsole.info(msg);
if(!kDebugMode)return;
error = error ?? false;
// if(!_printLog)return;
@ -21,7 +22,6 @@ class AppLog {
if(error){
msg = '----->>> $msg';
}
DebugConsole.info(msg);
Get.log(msg);
}
}