Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a flag for "silent" mode? #282

Open
RikaShiro opened this issue Mar 22, 2023 · 2 comments
Open

Is there a flag for "silent" mode? #282

RikaShiro opened this issue Mar 22, 2023 · 2 comments

Comments

@RikaShiro
Copy link

I don't need the logs printed by proxy by default standard, since I have to print something else on my own.
Is there any way to disable the default logs?
mitm

@toniopelo
Copy link

That's definitely needed, and apparently existed at some point.
See this PR that introduced a silent flag, this one that removed the silent flag in favor of the debug package with the possibility to use an env var to achieve the same thing.

And unfortunately, this commit did remove the debug package implementation while migrating to typescript, leaving us with no option (that I know of) to stop logs from being printed out, that's annoying.
Did you find anything @RikaShiro ? @joeferner Any hidden way of achieving that or plans to get this option back ?

@timvahlbrock
Copy link

Awful, but functional workaround: Overriding console.log and the other console functions. Might not be suitable for all use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants