Skip to content

Commit

Permalink
Log the reason for MQTT server disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
GJKrupa committed Jul 13, 2022
1 parent 66c9243 commit 052b133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submitters/mqtt_submitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void MQTTSubmitter::onConnect(bool sessionPresent)

void MQTTSubmitter::onDisconnect(AsyncMqttClientDisconnectReason reason)
{
logln("MQTT is down");
logfmt("MQTT is down because %d\n", reason);
disconnected = true;
}

Expand Down

0 comments on commit 052b133

Please sign in to comment.