Commit fbf2e942 authored by gabime's avatar gabime

Allow "err" when converting string to level

parent d18f2829
......@@ -34,8 +34,16 @@ SPDLOG_INLINE spdlog::level::level_enum from_str(const std::string &name) SPDLOG
}
level++;
}
// allow warn = warning before giving up
return name == "warn" ? level::warn : level::off;
// check also for "warn" and "err" before giving up..
if (name == "warn")
{
return level::warn;
}
if (name == "err")
{
return level::err;
}
return level::off;
}
} // namespace level
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment