Skip to content

Commit

Permalink
Fix debug logging of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
halfgaar committed Oct 15, 2023
1 parent 05d90f2 commit c2e6957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mqttpacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ void MqttPacket::handlePublish()

#ifndef NDEBUG
const bool duplicate = !!(first_byte & 0b00001000);
logger->log(LOG_DEBUG) << "Publish received. Size: " << bites.size() << ". Topic: '" << publishData.topic << "'. QoS=" << publishData.qos
logger->log(LOG_DEBUG) << "Publish received. Size: " << bites.size() << ". Topic: '" << publishData.topic << "'. QoS=" << static_cast<int>(publishData.qos)
<< ". Retain=" << publishData.retain << ". Dup=" << duplicate << ". Alias=" << publishData.topicAlias << ".";
#endif

Expand Down

0 comments on commit c2e6957

Please sign in to comment.