-
Notifications
You must be signed in to change notification settings - Fork 55
feat: make logging API more friendly to use #422
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d2c40e0
pull struct fields into kw
daniel-sanche 6351350
upper case severity
daniel-sanche 24f7fd5
added pandas environment test
daniel-sanche c8c6cab
fixed bug with severityu inference
daniel-sanche 8cafd00
🦉 Updates from OwlBot
gcf-owl-bot[bot] 162aeaa
Merge branch 'friendly-api' of github.com:googleapis/python-logging i…
daniel-sanche 6ee31cb
added dict resource handling
daniel-sanche 13052e5
🦉 Updates from OwlBot
gcf-owl-bot[bot] dbdc85d
removed insert id from extractable fields
daniel-sanche 6751984
Merge branch 'friendly-api' of github.com:googleapis/python-logging i…
daniel-sanche 323af99
🦉 Updates from OwlBot
gcf-owl-bot[bot] fd2b07f
use raise from for better exception handling
daniel-sanche f576d20
Merge branch 'v3.0.0' into friendly-api
daniel-sanche c7154d8
removed unused variable
daniel-sanche b13cd2e
changed log text
daniel-sanche 0dfd440
updated submodule
daniel-sanche dbca826
updated submodule
daniel-sanche 38f6d7b
updated submodule
daniel-sanche 338db63
updated submodule
daniel-sanche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule environment
updated
23 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
does it mean the writing log fails? is it a current user experience in the case of other failures?
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.
+1 to the question. We generally should try to avoid crashing the library.
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.
Before this change, the library would already throw the same exception here for the same inputs. This change attempts to turn certain error-raising inputs into valid inputs. But some inputs will still be invalid
Also, note that exceptions are used for control flow in Python, so raising an exception doesn't necessarily mean "crash"