Update xdrv_02_mqtt.ino

This commit is contained in:
Theo Arends 2021-04-20 18:35:32 +02:00
parent 507e075bc1
commit 10df74e0bf

View File

@ -377,6 +377,7 @@ void MqttPublish(const char* topic, bool retained) {
*/
String log_data = slog_type;
log_data += (Settings.flag.mqtt_enabled) ? topic : strrchr(topic,'/')+1;
log_data += F(" = ");
log_data += TasmotaGlobal.mqtt_data;
log_data += sretained;
AddLogData(LOG_LEVEL_INFO, log_data.c_str());