Commit f1c398ad by Eric Fiselier

invert check in GetLogInstanceForLevel()

parent 8ed7d766
...@@ -13,7 +13,7 @@ std::ostream& GetNullLogInstance(); ...@@ -13,7 +13,7 @@ std::ostream& GetNullLogInstance();
std::ostream& GetErrorLogInstance(); std::ostream& GetErrorLogInstance();
inline std::ostream& GetLogInstanceForLevel(int level) { inline std::ostream& GetLogInstanceForLevel(int level) {
if (level >= GetLogLevel()) { if (level <= GetLogLevel()) {
return GetErrorLogInstance(); return GetErrorLogInstance();
} }
return GetNullLogInstance(); return GetNullLogInstance();
......
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