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.

Add configuration option to disable console debugging

See original GitHub issue

Expected behavior

To be able to configure the console debugging verbosity

Observed behavior

In the console, [bugsnag] Loaded is printed during every app load. Consequently the console output in our end to end testing suite gets filled with those messages.

Steps to reproduce

Load an application with bugsnag in the browswer, and notice in the console that [bugsnag] Loaded! is printed there

Version

4.0.3

Additional information

This seems to be the line in question.

This is really just an issue for us in our testing environment, so being able to configure the verbosity level, or suppressing that one line would be great. Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

16reactions
bengourleycommented, Apr 20, 2018

Hey everyone, thanks for your patience! This is now published in v4.6.0.

You can now switch logging off entirely via

bugsnag({ apiKey: '...', logger: null })

Since you can do everything you need with either logger: null or logger: customLogger we figured a logLevel option was surplus.

9reactions
ericmagnusoncommented, Apr 10, 2018

+1

It’d really be nice if output could be muted. Having [bugsnag] Loaded! in the console for a production app isn’t ideal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging in Visual Studio Code
Choose Add Configuration option in the Run menu. ... As soon as a debugging session starts, the DEBUG CONSOLE panel is displayed and...
Read more >
Add option for debugging [#2987451] | Drupal.org
We can have a simple checkbox to enable/disable debugging in the configuration form, and the value of this checkbox can be used in...
Read more >
Disable debugging for ASP.NET application - Microsoft Learn
Method 1: Modify the Web.config file ... To disable debugging, add the compilation element to the Web.config file of the application by following ......
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 >
How to Disable Console Logging in Spring Boot - Baeldung
This configuration can be customized by adding a logback-spring.xml file to our resources. For example, let's set up the XML so as to...
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