From 3627ef21456f48f1ec7579d687ae2f1741dbbfb3 Mon Sep 17 00:00:00 2001 From: Evgeniy Polyakov Date: Wed, 21 Nov 2012 23:35:35 +0400 Subject: [PATCH] Use <= in cpp log level comparison --- bindings/cpp/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/cpp/log.cpp b/bindings/cpp/log.cpp index 2034218..aeeb240 100644 --- a/bindings/cpp/log.cpp +++ b/bindings/cpp/log.cpp @@ -54,7 +54,7 @@ log_file::~log_file(void) void log_file::log(int level, const char *msg) { - if (level < ll.log_level) { + if (level <= ll.log_level) { char str[64]; struct tm tm; struct timeval tv; -- 2.11.4.GIT