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

Change info to debug #3

Open
amab8901 opened this issue Nov 1, 2024 · 1 comment
Open

Change info to debug #3

amab8901 opened this issue Nov 1, 2024 · 1 comment

Comments

@amab8901
Copy link

amab8901 commented Nov 1, 2024

current:

producer.rs

info!(
    "Message with key {} delivered to partition {} at offset {}",
    message.key, partition, offset
);

requested:

producer.rs

debug!(
    "Message with key {} delivered to partition {} at offset {}",
    message.key, partition, offset
);

motivation:

it's spammy and the info isn't useful unless I'm debugging.

@amab8901
Copy link
Author

amab8901 commented Nov 4, 2024

I think an even better solution would be to remove the log altogether and instead put the status in the return value of the function so that the user can decide what to do with it.

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