mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Aceept also 'warn' string in level::from_str()
This commit is contained in:
@@ -34,7 +34,8 @@ SPDLOG_INLINE spdlog::level::level_enum from_str(const std::string &name) SPDLOG
|
||||
}
|
||||
level++;
|
||||
}
|
||||
return level::off;
|
||||
// allow warn = warning before giving up
|
||||
return name == "warn" ? level::warn: level::off;
|
||||
}
|
||||
} // namespace level
|
||||
|
||||
|
Reference in New Issue
Block a user