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.

Remove unnecessary console logs

See original GitHub issue
MicroModal v0.1.1: ❗Please specify at least one 'micromodal-trigger' data attribute.  index.js:118
16:21:15.992 MicroModal v0.1.1: Example: <a href="#" data-micromodal-trigger="my-modal"></a>

I was curious if we could remove this from hitting logs every time there’s a page without a modal on it?

If not, can we get a setting of some sort to set logging to false?

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Log1xcommented, Oct 21, 2017

Perfect. Thanks a lot guys.

1reaction
kalpeshsinghcommented, Oct 21, 2017

Hi @Log1x ,

You might have noticed that we have added support for debugMode. Now, you can turn on logging by simply adding one option to init.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove all console.log() from your project in less than a minute
Step 1. Open your project in VS Code ( Since we are using Regex, It is easier to use it in VS Code...
Read more >
How to quickly and conveniently disable all console.log ...
Redefine the console.log function in your script. console.log = function() {}. That's it, no more messages to console. EDIT: Expanding on Cide's idea....
Read more >
Ways to Remove Those Pesky console.log Statements
The lowest tech solution is to go through your code-base and manually remove all instances of console statements. This includes variations such ...
Read more >
How to remove console log from your JavaScript files ...
You can edit this list: log|debug to remove the console method you want to remove. For example,if you want to remove console log,...
Read more >
How to Disable Console Logging in Spring Boot - Baeldung
2. How to Disable the Console Output for Logback · logging.file=baeldung-disabled-console.log · logging.pattern.console= · logging.level.root=OFF
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