From a8b93c4cdb1db748cf6e14c1d33891b61b33bd70 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 6 Jun 2019 10:03:26 +0200 Subject: [PATCH] Fixed log for unsupported reatined messages --- sonoff/xdrv_02_mqtt.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sonoff/xdrv_02_mqtt.ino b/sonoff/xdrv_02_mqtt.ino index 34b17f281..1bab26de3 100644 --- a/sonoff/xdrv_02_mqtt.ino +++ b/sonoff/xdrv_02_mqtt.ino @@ -237,7 +237,9 @@ void MqttPublish(const char* topic, bool retained) { char *me; #ifdef USE_MQTT_AWS_IOT - AddLog_P(LOG_LEVEL_DEBUG, S_LOG_MQTT, PSTR("Retained are not supported by AWS IoT, using retained = false.")); + if (retained) { + AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR("Retained are not supported by AWS IoT, using retained = false.")); + } retained = false; // AWS IoT does not support retained, it will disconnect if received #endif