Skip to content

Commit

Permalink
More debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed May 28, 2024
1 parent da27824 commit f65f32a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mqtt5ClientFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ QList<cc_tools_qt::DataInfoPtr> Mqtt5ClientFilter::sendDataImpl(cc_tools_qt::Dat
auto retained = getOutgoingRetained(props);
props[retainedProp()] = retained;

if (2 <= getDebugOutputLevel()) {
std::cout << '[' << currTimestamp() << "] (" << debugNameImpl() << "): publish: " << topic << std::endl;
}

CC_Mqtt5ErrorCode ec = CC_Mqtt5ErrorCode_Success;
CC_Mqtt5PublishHandle publish = ::cc_mqtt5_client_publish_prepare(m_client.get(), &ec);
if (publish == NULL) {
Expand Down

0 comments on commit f65f32a

Please sign in to comment.