From e64948979dcfe2d0114451697794baf7dee6b0da Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 9 Aug 2018 11:54:24 +0100 Subject: [PATCH] Fix UNSUBACK messages not being logged. Closes #903. Thanks to Christoph Krey. --- ChangeLog.txt | 1 + src/handle_unsubscribe.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index b4fcff12..7bcde30a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -21,6 +21,7 @@ Broker: - Fix bridge publishing failing when per_listener_settings was true. Closes #860. - Fix `use_identity_as_username true` not working. Closes #833. +- Fix UNSUBACK messages not being logged. Closes #903. Library: - Fix some places where return codes were incorrect, including to the diff --git a/src/handle_unsubscribe.c b/src/handle_unsubscribe.c index 6f1428b5..1a1154a6 100644 --- a/src/handle_unsubscribe.c +++ b/src/handle_unsubscribe.c @@ -92,6 +92,8 @@ int handle__unsubscribe(struct mosquitto_db *db, struct mosquitto *context) db->persistence_changes++; #endif + log__printf(NULL, MOSQ_LOG_DEBUG, "Sending UNSUBACK to %s", context->id); + return send__command_with_mid(context, UNSUBACK, mid, false); }