Skip to content

Commit b0e546e

Browse files
committed
fix: make all log level str to log level uppercase
1 parent e35e531 commit b0e546e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl std::str::FromStr for Level {
4242
type Err = String;
4343

4444
fn from_str(s: &str) -> Result<Self, Self::Err> {
45-
match s {
45+
match s.to_uppercase().as_str() {
4646
"TRACE" => Ok(Level::Trace),
4747
"DEBUG" => Ok(Level::Debug),
4848
"INFO" => Ok(Level::Info),

0 commit comments

Comments
 (0)