Skip to content

Commit

Permalink
changed log message
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Oct 6, 2024
1 parent b34fdd9 commit 4e1df4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/components/jomjol_mqtt/interface_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event) {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Connection refused, not authorized. Check username/password (0x05)");
}
else {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Other event id:" + std::to_string(event->error_handle->connect_return_code));
ESP_LOGE(TAG, "Other event id:%d", event->error_handle->connect_return_code);
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Connection Refused with unknown event id:" + std::to_string(event->error_handle->connect_return_code));
}

#ifdef DEBUG_DETAIL_ON
Expand Down

0 comments on commit 4e1df4a

Please sign in to comment.