Closed RdoubleA closed 2 days ago
Note: Links to docs will display an error until the docs builds have been completed.
There are 1 currently active SEVs. If your PR is affected, please view them below:
As of commit 99fe27b7cc8c75210e6e119c81e816b48f9f97e2 with merge base abdb5a43c1173cdb05208ca6fd498919536c4c19 (): :green_heart: Looks good so far! There are no failures yet. :green_heart:
This comment was automatically generated by Dr. CI and updates every 15 minutes.
Context
Are you tired of constantly checking for rank zero before logging? Then
log_rank_zero
is just the solution for you!Changelog
What are the changes made in this PR?
log_rank_zero
stacklevel=2
tolog_rank_zero
so the line from the calling function is shown instead of withinlog_rank_zero
. This is not yet relevant, until we decided to show more details on where the log was emitted by configuring the logger format more, but this can improve UX internallyTest plan
Please make sure to do each of the following if applicable to your PR. If you're unsure about any one of these just ask and we will happily help. We also have a contributing page for some guidance on contributing.
pre-commit install
)pytest tests
pytest tests -m integration_test
UX
If your function changed a public API, please add a dummy example of what the user experience will look like when calling it. Here is a docstring example and a tutorial example