Skip to content

Release logging is capped at info #1206

@barsoosayque

Description

@barsoosayque

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::level to DEBUG (Obviously, wouldn't help, since the problem is at compile time)
  • Declaring [dependencies.tracing] with features = ["release_max_level_debug"], but it seems that out of two levels, tracing still picks info.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions