From 8cb9b195e5fbb79d979c982589494acd99f5c2c1 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 8 Oct 2014 21:38:01 +0100 Subject: [PATCH] When using -v and the broker receives a SIGHUP, verbose logging was being disabled. This has been fixed. --- ChangeLog.txt | 2 ++ src/conf.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 75e2bba8..56f9d69e 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/src/conf.c b/src/conf.c index b603a933..3463ee26 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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; }