我正在使用 Capacitor 存储来获取和设置值,如下所示https://capacitorjs.com/docs/apis/storage 一切正常,但是我在使用 xcode 模拟器和 safari web 检查器进行开发时收到大量控制台消息,每个我获取和设置值的时间:
>native Storage.get (#284123)
>native Storage.get (#284124)
>native Storage.get (#284125)
>result Storage.get (#284123)
>native Storage.get (#284126)
Run Code Online (Sandbox Code Playgroud)
我的应用程序执行数百个这样的操作。
尝试按照此处所述禁用这些日志,但仍在记录
https://github.com/ionic-team/capacitor/issues/2438
"hideLogs": true
Run Code Online (Sandbox Code Playgroud)
或者
"ios": {
"hideLogs": true
}
Run Code Online (Sandbox Code Playgroud)
在 Capacitor.config.json 中未禁用
它甚至在官方文档中提到了它,但不起作用,有什么想法吗? https://capacitorjs.com/docs/reference/config
https://capacitorjs.com/docs/apis/console
谢谢