Fix verbose logging on reload.
This commit is contained in:
parent
ac377b7bd1
commit
2a922e9f06
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user