fix:修复log在打包状态下不打印的问题
This commit is contained in:
parent
21c315b347
commit
e676e66fd2
@ -14,6 +14,7 @@ class AppLog {
|
|||||||
_onlyError = onlyError ?? false;
|
_onlyError = onlyError ?? false;
|
||||||
}
|
}
|
||||||
static log(String msg,{bool? error}){
|
static log(String msg,{bool? error}){
|
||||||
|
DebugConsole.info(msg);
|
||||||
if(!kDebugMode)return;
|
if(!kDebugMode)return;
|
||||||
error = error ?? false;
|
error = error ?? false;
|
||||||
// if(!_printLog)return;
|
// if(!_printLog)return;
|
||||||
@ -21,7 +22,6 @@ class AppLog {
|
|||||||
if(error){
|
if(error){
|
||||||
msg = '----->>> $msg';
|
msg = '----->>> $msg';
|
||||||
}
|
}
|
||||||
DebugConsole.info(msg);
|
|
||||||
Get.log(msg);
|
Get.log(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user