question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Remove all the console messages

See original GitHub issue

Hi,

Please remove all the console messages on Capacitor plugins. Because it’ll directly effect to degrade the performance of native apps. And also security risk too. i.e. can see the table names and etc. Thanks!

I use this plugin: https://github.com/capacitor-community/sqlite

The author of that plugin has mentioned like so:

this is the messages coming from capacitor itself nothing to do with the plugin

Please refer here for more info: https://github.com/capacitor-community/sqlite/issues/236

c1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Mar 21, 2022

Console is not a plugin, so was removed from the plugins section. The configuration is documented on the configuration docs https://capacitorjs.com/docs/config deprecated means that there is a better way and you should use the new but, but it keeps working for now. It will be removed in the future.

1reaction
jcesarmobilecommented, Mar 21, 2022

For Capacitor 3 you should use loggingBehavior set to none, hideLogs is deprecated in Capacitor 3. That link you provided is for Capacitor 2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide all console logs in production with just 3 lines of code
log = function () {}; I am using this on my live app to hides the console. If someone know any other method...
Read more >
Javascript Console Clear disables all console logs instead of ...
console.clear();. So I get a clean console before the project starts. Strangely, any logs that follow console.clear aren't ...
Read more >
The drop_console option should remove all console methods ...
I was trying to resolve #2321 and found the bug. my plan as follow: 1、loop the ExprOrSuper , Until it matches (Expr::Ident(obj), Expr::Ident ......
Read more >
Ways to Remove Those Pesky console.log Statements
1: Manual Removal. The lowest tech solution is to go through your code-base and manually remove all instances of console statements. This ...
Read more >
Remove all console.log() from your project in less than a minute
Remove all console.log() from your project in less than a minute · Step 1. Open your project in VS Code ( Since we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found