Skip to content

Replace bevy_log's tracing reexport with bevy_utils'#12254

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
james7132:consolidate-tracing
Mar 2, 2024
Merged

Replace bevy_log's tracing reexport with bevy_utils'#12254
alice-i-cecile merged 1 commit intobevyengine:mainfrom
james7132:consolidate-tracing

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
@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