mirror of
https://github.com/google/benchmark.git
synced 2024-12-29 14:00:16 +08:00
invert check in GetLogInstanceForLevel()
This commit is contained in:
parent
8ed7d7664b
commit
f1c398adb4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user