ctx: don't check whether log level is less than XMPP_LEVEL_DEBUG

XMPP_LEVEL_DEBUG is always 0.
This commit is contained in:
Dmitry Podgorny
2017-06-29 18:45:26 +03:00
parent 8ef027c54a
commit 9505cace5e

View File

@@ -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];
}