Closed Sergiovan closed 6 months ago
Working as intended; we were setting the log level after initializing Raylib, which is important since Raylib itself starts logging when being initialized. A minimum reproducable example would not account for this.
But I will change this to reduce user confusion, since it's likely expected to work as it would have previously.
Problem
Description: Setting the log level via the RaylibBuilder or the RaylibHandle does not seem to work. Log messages from lower log levels still appear on the console.
Commit: 5.0.0
OS: Linux 6.6.10-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri Jan 5 17:38:36 UTC 2024
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
cargo version: cargo 1.76.0 (c84b36747 2024-01-18)
Minimal example
Code
Cargo.toml
src/main.rs
Expected behaviour
Program closes immediately. Nothing shows up on console.
Actual behavior.
The following shows up on console:
The program closes after that.
Extra info
I also tried building a window with title and size, and different logging levels. Still shows output. Even with level set to
LOG_NONE
it shows output.I found this after upgrading from 4.5.0 (where setting the log level does work) to 5.0.0