From f1c398adb4396adcde58b8118fcdb9cb0699f8f6 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 6 Mar 2015 14:19:06 -0500 Subject: [PATCH] invert check in GetLogInstanceForLevel() --- src/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.h b/src/log.h index 184ec4d9..3777810e 100644 --- a/src/log.h +++ b/src/log.h @@ -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();