From 9505cace5e262a641e397360dbdf0ee6163647c3 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 29 Jun 2017 18:45:26 +0300 Subject: [PATCH] ctx: don't check whether log level is less than XMPP_LEVEL_DEBUG XMPP_LEVEL_DEBUG is always 0. --- src/ctx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ctx.c b/src/ctx.c index 6e6f22e..444ea18 100644 --- a/src/ctx.c +++ b/src/ctx.c @@ -190,7 +190,6 @@ xmpp_log_t *xmpp_get_default_logger(xmpp_log_level_t level) { /* clamp to the known range */ if (level > XMPP_LEVEL_ERROR) level = XMPP_LEVEL_ERROR; - if (level < XMPP_LEVEL_DEBUG) level = XMPP_LEVEL_DEBUG; return (xmpp_log_t*)&_xmpp_default_loggers[level]; }