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

feat: add client logging support for sync gRPC #2284

Merged
merged 12 commits into from
Dec 11, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Dec 10, 2024

excludes support for mixins and streaming calls.

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Dec 10, 2024
@ohmayr ohmayr force-pushed the add-debug-logging-for-sync-grpc branch 2 times, most recently from 5765247 to 77f47ee Compare December 10, 2024 20:42
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. size: l Pull request size is large. and removed size: m Pull request size is medium. size: xl Pull request size is extra large. labels Dec 10, 2024
@ohmayr ohmayr force-pushed the add-debug-logging-for-sync-grpc branch from f6392c9 to 30a2939 Compare December 10, 2024 22:05
@ohmayr ohmayr marked this pull request as ready for review December 10, 2024 22:05
@ohmayr ohmayr requested a review from a team as a code owner December 10, 2024 22:05
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

Looks good. One non-trivial question.suggestion about the accessor.

@@ -186,6 +246,11 @@ def __init__(self, *,
],
)

self._grpc_channel = self._base_channel
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG): # pragma: NO COVER
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest checking here whether any logging levels are handled at all, so using either std_logging.NOTSET or the next highest priority, the numeric 1 (ref)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed.

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Dec 11, 2024
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Dec 11, 2024
Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

LGTM. I can do a final pass once you have the if/elif stuff down.

Copy link
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

One comment

@ohmayr ohmayr merged commit dddf797 into main Dec 11, 2024
125 checks passed
@ohmayr ohmayr deleted the add-debug-logging-for-sync-grpc branch December 11, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants