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

Added logging parameter for Avro(Consumer|Producer). #699

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

venthur
Copy link
Contributor

@venthur venthur commented Oct 21, 2019

The patch introduces **kwargs and just passes them to the underlying
super calls.

Tests are included.

Closes: #698

@ghost
Copy link

ghost commented Oct 21, 2019

It looks like @venthur hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

@venthur
Copy link
Contributor Author

venthur commented Oct 21, 2019

[clabot:check]

@ghost
Copy link

ghost commented Oct 21, 2019

@confluentinc It looks like @venthur just signed our Contributor License Agreement. 👍

Always at your service,

clabot

@venthur
Copy link
Contributor Author

venthur commented Feb 11, 2020

Any updates on this one?

@chrisjbremner
Copy link

@rnpridgeon suggests a workaround here. That being said, it looks like this PR might be ready for review @rnpridgeon?

while f.cnt == 0:
kc.poll(timeout=0.5)

print('%s: %d log messages seen' % (f.name, f.cnt))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add a check that the logger actually saw some logs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that implied by the f.cnt > 0 after the while loop?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right!

The patch introduces **kwargs and just passes them to the underlying
super calls.

Tests are included.

Closes: confluentinc#698
@venthur venthur force-pushed the fix/logging_for_avro branch from 406ab96 to cfb9794 Compare March 9, 2021 13:28
@edenhill edenhill merged commit 2ebf874 into confluentinc:master Mar 9, 2021
@edenhill
Copy link
Contributor

edenhill commented Mar 9, 2021

Thank you for this!

@venthur
Copy link
Contributor Author

venthur commented Mar 9, 2021

I've rebased this branch against current master. I think the failing tests are unrelated to this merge request.

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

Successfully merging this pull request may close these issues.

Avro(Consumer|Producer) don't support logger parameter
3 participants