Commit 299557ba720cf9cd971a9a5b07e76e5be642d94c

Authored by Wiebe Cazemier
1 parent 99354574

Log QoS level at subscribe

Showing 1 changed file with 1 additions and 1 deletions
mqttpacket.cpp
@@ -446,7 +446,7 @@ void MqttPacket::handleSubscribe() @@ -446,7 +446,7 @@ void MqttPacket::handleSubscribe()
446 splitTopic(topic, *subtopics); 446 splitTopic(topic, *subtopics);
447 if (authentication.aclCheck(sender->getClientId(), sender->getUsername(), topic, *subtopics, AclAccess::subscribe, qos, false) == AuthResult::success) 447 if (authentication.aclCheck(sender->getClientId(), sender->getUsername(), topic, *subtopics, AclAccess::subscribe, qos, false) == AuthResult::success)
448 { 448 {
449 - logger->logf(LOG_SUBSCRIBE, "Client '%s' subscribed to '%s'", sender->repr().c_str(), topic.c_str()); 449 + logger->logf(LOG_SUBSCRIBE, "Client '%s' subscribed to '%s' QoS %d", sender->repr().c_str(), topic.c_str(), qos);
450 sender->getThreadData()->getSubscriptionStore()->addSubscription(sender, topic, *subtopics, qos); 450 sender->getThreadData()->getSubscriptionStore()->addSubscription(sender, topic, *subtopics, qos);
451 subs_reponse_codes.push_back(qos); 451 subs_reponse_codes.push_back(qos);
452 } 452 }