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.

Is your feature request related to a problem? Please describe.

In my (edge) use case of having an app where we’re pretending there really is a server even though there isn’t. I’d prefer to not get anything logged to the console from MSW (unless there’s an error).

Describe the solution you’d like

I’d like to be able to disable the logging. Perhaps as an option when I call start?

Describe alternatives you’ve considered

I’m considering overriding console.log/etc to filter out MSW logs.

Additional context

https://bookshelf.lol

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kentcdoddscommented, Apr 27, 2020

0.14.1 works! Thanks!

1reaction
kettanaitocommented, Apr 22, 2020

It will be possible to opt out of logs in the next release (0.14.0):

import { composeMocks } from 'msw'

const { start } = composeMocks(...)
start({ quiet: true })
Read more comments on GitHub >

github_iconTop Results From Across the Web

Federal Opt-Out Log - Minnesota Housing
Federal Multifamily Program Opt Out Information. This log is a list of developments for which owners have given Minnesota Housing notice of their...
Read more >
Controlling request logging for Watson services - IBM Cloud
By default, all IBM Watson™ services log requests and their results. ... Choose to opt out at either the account level or at...
Read more >
How can I opt-out from sending anonymous usage statistics ...
How can I opt-out from sending anonymous usage statistics and crash logs? · Click Settings. Settings.png · Un-tick Send anonymous crash reports ...
Read more >
New Relic's log management security and privacy
If you need to opt out of automatic obfuscation, contact support. Custom log obfuscation. With our log obfuscation feature, available with Data Plus,...
Read more >
How to Track and Manage Advertising Opt-Outs - TrueVault
The plug-in or opt out tool should give the customer control over what information they share through the website and should provide you...
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