When using -v and the broker receives a SIGHUP, verbose logging was being disabled. This has been fixed.

pull/211/merge
Roger A. Light 11 years ago
parent bad7ec75f0
commit 8cb9b195e5

@ -10,6 +10,8 @@ Broker:
subscriptions. This does not have a negative impact on security because
checks are still made before a message is sent to a client.
Fixes bug #1374291.
- When using -v and the broker receives a SIGHUP, verbose logging was being
disabled. This has been fixed.
Client library:
- Fix mutex being incorrectly passed by value. Fixes bug #1373785.

@ -505,7 +505,7 @@ int mqtt3_config_read(struct mqtt3_config *config, bool reload)
config->log_dest = cr.log_dest;
}
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){
config->log_type = cr.log_type;
}

Loading…
Cancel
Save