-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add Global context fields to StdlibFormatter #65
Conversation
💚 CLA has been signed |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
Updated the type hints.
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.
This looks awesome, thank you!
/test |
@rdifrango Can you please sign the CLA? Thanks! |
I fixed the lint issues -- for future reference you could check out pre-commit -- that would have run That said, this was an excellent PR for a first-time contributor. You even added a test! Thank you! |
@basepi - Thank you for the feedback and yes I wasn't going to make a change without a test that's simply not how I roll :) I should have thought to use Should I update to the latest master? Oh and @basepi on the CLA, I'm awaiting our legal department to approve it. The OSS office which happens to be on the same team as me is trying to push it through. |
Excellent. Ping me when it's complete and we'll merge in master and get this merged.
That should make it so the next time you commit, it sets up and runs |
@rdifrango great news! We'll get this merged. |
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.
One question, otherwise this looks good.
ecs_logging/_stdlib.py
Outdated
style="%", # type: str | ||
validate=None, # type: Optional[bool] | ||
stack_trace_limit=None, # type: Optional[int] | ||
extra=None, # type: Optional[Dict[Any, Any]] |
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.
Should this be Optional[Dict[str, Any]]
?
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.
@sethmlarson - That's a good point, @basepi should I change it?
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.
@rdifrango Yes please!
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.
done, now let's hope it builds ;)
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.
LGTM
Don't know why the docs build was stuck but this doesn't touch docs so I merged it. Thanks again for the contribution! |
Resolves #57
Please note; I'm a Python newbie so if there are best practices, etc that I missed feedback is welcomed.
I did run
black
to format the affected files.