Fix verbose logging on reload.

This commit is contained in:
Roger A. Light 2014-09-22 23:05:29 +01:00
parent ac377b7bd1
commit 2a922e9f06

View File

@ -522,7 +522,7 @@ int mqtt3_config_read(struct mqtt3_config *config, bool reload)
config->log_dest = cr.log_dest; config->log_dest = cr.log_dest;
} }
if(config->verbose){ if(config->verbose){
config->log_type = MOSQ_LOG_DEBUG | MOSQ_LOG_ERR | MOSQ_LOG_WARNING | MOSQ_LOG_NOTICE | MOSQ_LOG_INFO; config->log_type = INT_MAX;
}else if(cr.log_type_set){ }else if(cr.log_type_set){
config->log_type = cr.log_type; config->log_type = cr.log_type;
} }