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

Replace bevy_log's tracing reexport with bevy_utils' #12254

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

james7132
Copy link
Member

@james7132 james7132 commented Mar 2, 2024

Objective

Fixes #11298. Make the use of bevy_log vs bevy_utils::tracing more consistent.

Solution

Replace all uses of bevy_log's logging macros with the reexport from bevy_utils. Remove bevy_log as a dependency where it's no longer needed anymore.

Ideally we should just be using tracing directly, but given that all of these crates are already using bevy_utils, this likely isn't that great of a loss right now.

@james7132 james7132 added C-Dependencies A change to the crates that Bevy depends on C-Code-Quality A section of code that is hard to understand or change A-Diagnostics Logging, crash handling, error reporting and performance analysis labels Mar 2, 2024
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 2, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 2, 2024
Merged via the queue into bevyengine:main with commit 5619bd0 Mar 2, 2024
34 checks passed
@hymm
Copy link
Contributor

hymm commented Mar 2, 2024

Fyi there's a issue about trying to get rid of bevy utils.

@alice-i-cecile
Copy link
Member

#11478 :)

@pablo-lua pablo-lua mentioned this pull request Mar 5, 2024
spectria-limina pushed a commit to spectria-limina/bevy that referenced this pull request Mar 9, 2024
# Objective
Fixes bevyengine#11298. Make the use of bevy_log vs bevy_utils::tracing more
consistent.

## Solution
Replace all uses of bevy_log's logging macros with the reexport from
bevy_utils. Remove bevy_log as a dependency where it's no longer needed
anymore.

Ideally we should just be using tracing directly, but given that all of
these crates are already using bevy_utils, this likely isn't that great
of a loss right now.
@james7132 james7132 deleted the consolidate-tracing branch March 10, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Diagnostics Logging, crash handling, error reporting and performance analysis C-Code-Quality A section of code that is hard to understand or change C-Dependencies A change to the crates that Bevy depends on S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent use of tracing and bevy_log
4 participants