Commit 52c95e0
committed
Fix suppression of all console logs when
Bevy was failing to print events from `info!()` and friends to the console if
the `trace_tracy` feature was enabled.
The problem was this per-layer filter that was added in bevyengine#4320 to suppress a
noisy per-frame event (which Tracy requires in order to properly close out a
frame):
- The problem event's target was `"bevy_render::renderer"`, not `"tracy"`.
- So, the filter wasn't specifically targeting the noisy event.
- Without a default, `tracing_subscriber::filter::Targets` will remove
_everything_ that doesn't match an explicit target rule.
- So, the filter _was_ silencing the noisy event, along with everything else.
This commit changes that filter to do what was probably intended in bevyengine#4320:
suppress any events more verbose than `ERROR` from `bevy_render::renderer`, but
allow anything else that already made it through the top-level filter_layer.trace_tracy is enabled1 parent bad3d57 commit 52c95e0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| |||
0 commit comments