Skip to content

Commit

Permalink
Log the payload to see why the request was rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Oct 7, 2024
1 parent 78bf79d commit f326120
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/MqttRequestResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ static int s_SubmitUpdateNamedShadowAcceptedRequest(TestContext &context, TestSt
std::lock_guard<std::mutex> lock(state->lock);
ASSERT_INT_EQUALS(AWS_ERROR_SUCCESS, tracker->errorCode);

AWS_LOGF_INFO(AWS_LS_MQTT_GENERAL, "**Temp-Request-response-test-payload: %s", tracker->payload.c_str());

ASSERT_TRUE(
tracker->topic == Aws::Crt::String((const char *)responsePaths[0].topic.ptr, responsePaths[0].topic.len));
ASSERT_TRUE(tracker->payload.length() > 0);
Expand Down

0 comments on commit f326120

Please sign in to comment.