invert check in GetLogInstanceForLevel()

This commit is contained in:
Eric Fiselier 2015-03-06 14:19:06 -05:00
parent 8ed7d7664b
commit f1c398adb4

View File

@ -13,7 +13,7 @@ std::ostream& GetNullLogInstance();
std::ostream& GetErrorLogInstance();
inline std::ostream& GetLogInstanceForLevel(int level) {
if (level >= GetLogLevel()) {
if (level <= GetLogLevel()) {
return GetErrorLogInstance();
}
return GetNullLogInstance();