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

Hide Logs #1106

Closed
stefanodecillis opened this issue Nov 27, 2024 · 2 comments
Closed

Hide Logs #1106

stefanodecillis opened this issue Nov 27, 2024 · 2 comments

Comments

@stefanodecillis
Copy link

Hi,

sorry i couldnt find the solution in this wrapper issues and readmes. I'm trying to disable the logs that kafka client (producer) is "producing" when publishing messages.

All my logs file are filled by Message delivered to topic: topic-name, partition: 0. I tried with

debug: 'broker',
log_level: 2;

with no success. Do you know how can I better configure my client and avoid debug logs? My desire is to keep only critical and error logs if possible

@andrewstanovsky
Copy link
Contributor

Remove that 'debug: 'broker'' line completely as its name implies - it's not for normal usage, and add 'event.error' callback. There are more callbacks that you might want to add, like 'connection.failure' for example

@stefanodecillis
Copy link
Author

that makes sense! It actually worked overwriting the logs
Thanks!

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