ctx: don't check whether log level is less than XMPP_LEVEL_DEBUG
XMPP_LEVEL_DEBUG is always 0.
This commit is contained in:
@@ -190,7 +190,6 @@ xmpp_log_t *xmpp_get_default_logger(xmpp_log_level_t level)
|
|||||||
{
|
{
|
||||||
/* clamp to the known range */
|
/* clamp to the known range */
|
||||||
if (level > XMPP_LEVEL_ERROR) level = XMPP_LEVEL_ERROR;
|
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];
|
return (xmpp_log_t*)&_xmpp_default_loggers[level];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user