Issue
I am using Capacitor storage to get and set values as seen here https://capacitorjs.com/docs/apis/storage Everything functions correctly however I am getting a large volume of console messages while developing using xcode simulator and safari web inspector, every time I get and set values:
>native Storage.get (#284123)
>native Storage.get (#284124)
>native Storage.get (#284125)
>result Storage.get (#284123)
>native Storage.get (#284126)
My app performs many hundred of these operations.
Tried disabling these logs as described here but still logging
https://github.com/ionic-team/capacitor/issues/2438
"hideLogs": true
or
"ios": {
"hideLogs": true
}
in capacitor.config.json not disabling
it even mentions it here in official docs, but doesn't work, any ideas? https://capacitorjs.com/docs/reference/config
https://capacitorjs.com/docs/apis/console
Thanks
Solution
Well.. updating to help any other poor souls out there struggling with capacitor console.log torture in need of a solution...
Ended up going to native-bridge.js file for project
commented out entire functions for:
capacitor.logToNative
capacitor.logFromNative
cli -> npx capacitor sync
Thankyou capacitor for your pages of logs that clogged my system and overheated my cpu.. enough said now... please be quiet.
Thankyou!
Answered By - Ray Andison
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.