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