Closed janhohenheim closed 3 months ago
Relevant lines in log
crate source code:
https://github.com/rust-lang/log/blob/d5ba2cfee9b3b4ca1fcad911b7f59dc79eeee022/src/lib.rs#L1528
Do we have debug_assertions
enabled in release builds?
@benfrankel we do not. Try this snippet to confirm:
#[cfg(not(debug_assertions))]
compile_error!("We are running in release mode!");
Does the log
dependency have debug_assertions
enabled when our crate is in release mode? I highly doubt it but IDK how this is possible.
Per @mockersf:
you're setting the feature on the
log
crate, but I'm pretty sure Bevy doesn't use it as a backend on the web to be able to log on the console. you should set the log level features on thetracing
crate instead
Update: can confirm that fixes it for https://janhohenheim.itch.io/bike-game
Per
Cargo.toml
, we should only see logs for release builds that are at leastwarn
, i.e. onlywarn
anderror
.see the relevant documentation:
However, opening the console in https://the-bevy-flock.itch.io/bevy-quickstart shows that we receive
info
logs: