Skip to content

Commit

Permalink
[#396] Add IOX2_LOG_LEVEL to cargo.toml env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Ziad Mostafa <[email protected]>
  • Loading branch information
zmostafa committed Nov 8, 2024
1 parent 307b151 commit edea62d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rustdocflags = ["-D", "warnings"]
[env]
RUST_TEST_THREADS = "1"
RUST_BACKTRACE = "1"
IOX2_LOG_LEVEL = "Trace"

[target.debug]
rustflags = ["-Z", "sanitizer=address"]
Expand Down
2 changes: 1 addition & 1 deletion iceoryx2-bb/log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl LogLevel {
fn from_str_fuzzy(s: &str) -> LogLevel {
match s.to_lowercase().as_str() {
"trace" => LogLevel::Trace,
"tebug" => LogLevel::Debug,
"debug" => LogLevel::Debug,
"info" => LogLevel::Info,
"warn" => LogLevel::Warn,
"error" => LogLevel::Error,
Expand Down

0 comments on commit edea62d

Please sign in to comment.