-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Release logging is capped at info #1206
Copy link
Copy link
Closed
Labels
C-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use
Description
Building a bevy app in release mode sets the static max level of tracing to info. Here is the warning I get:
warning: some trace filter directives would enable traces that are disabled statically
| `debug` would enable the DEBUG level for all targets
= note: the static max level is `info`
= help: to enable DEBUG logging, remove the `max_level_info` feature
I've tried:
- Setting
LogSettings::leveltoDEBUG(Obviously, wouldn't help, since the problem is at compile time) - Declaring
[dependencies.tracing]withfeatures = ["release_max_level_debug"], but it seems that out of two levels, tracing still picksinfo.
As far as I understand, currently it is not possible to remove a feature from a transitive dependency, and because "release_max_level_info" is not a default feature of tracing, it's also impossible to disable it using default-features = false. Am I missing something ?
If there is no solution, I propose removing bevy_utils/tracing/release_max_level_info, and simply move the responsibility to users.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to use