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

Feature Request: disable debug logging (via configurable param?) #176

Open
go-sean-go opened this issue Jul 23, 2023 · 1 comment
Open

Comments

@go-sean-go
Copy link

go-sean-go commented Jul 23, 2023

(Love this extension - sending tons of data to Algolia, and it's working great.)

The local env really suffers from all the debug logging being thrown; it looks like, for me, every file sync'd logs 3 (large) log entries:

  • 1 DEBUG log
  • 2 INFO logs

It's about ~100 lines in my terminal window. This makes any local Firebase Emulator work very, very spammy.

I would love a way to disable this - perhaps via an entry in firestore-algolia-search.env? My perfect implementation would be to leave WARN logs and higher enabled, so perhaps the config line is like MIN_LOG_LEVEL or something. But it could also just be LOGS_DISABLED and that would serve me just fine. :)

(I am (personally) OK with these logs staying in production, though honestly I could imagine that being configurable as well for extremely high workloads that want to minimize logging.)

Thanks for the great extension!

@smomin
Copy link
Collaborator

smomin commented Jul 26, 2023

hey @go-sean-go go ahead and create a PR with an approach you might have in mind. I can review it when its ready.

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

2 participants