-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix: Updated protobuf JSON formatting to support nested protobufs #797
Conversation
google/cloud/logging_v2/entries.py
Outdated
if self.payload is not None: | ||
try: | ||
proto_payload = MessageToDict(self.payload) | ||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace this bare exception with the exception sub-class you'd expect to catch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there's a small lint error, but other than that LGTM!
Also added unit/system tests to test nested protobufs.
Fixes #733