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

How to disable debug logs? #116

Open
ersah123 opened this issue Apr 4, 2024 · 0 comments
Open

How to disable debug logs? #116

ersah123 opened this issue Apr 4, 2024 · 0 comments

Comments

@ersah123
Copy link

ersah123 commented Apr 4, 2024

Im using this library on my NuxtJS project. When i started using nitro server for the migration to Nuxt 3 (Nuxt bridge currently), i started to see this log on my server logs. I needs to disable them on prod.

This is my usage:

httpsAgent = new HttpsAgent({ maxSockets: 128, maxFreeSockets: 128, timeout: 60000, freeSocketTimeout: 30000, });
Logs:
sock[0#cdn.x.com:443:::::::::::::::::::::] create, timeout 60000ms

Kind of logs that i want to disable is this:

debug('%s create, timeout %sms', socket[SOCKET_NAME], getSocketTimeout(socket));

Setting env variable didnt help
DEBUG=false

I didnt see any config for this, how can i do it?

@ersah123 ersah123 changed the title How to disable debug logs on production? How to disable debug logs? Apr 4, 2024
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

1 participant