Update Logger.cpp
updated comment for clarity
This commit is contained in:
parent
80b7a0109c
commit
29a9c7fb68
@ -59,6 +59,8 @@ void Logger::log(std::string_view msg, const LogLevel& lvl)
|
|||||||
std::cout << "[WARN] " << msg << std::endl;
|
std::cout << "[WARN] " << msg << std::endl;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
|
// Regardless of what level is set, ERROR is always logged, so
|
||||||
|
// rather than explicitly check for the ERROR case, we just use default case
|
||||||
default:
|
default:
|
||||||
if(lvl == ERROR)
|
if(lvl == ERROR)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user