Skip to content
Snippets Groups Projects
Commit bfa324bc authored by Adrien Béraud's avatar Adrien Béraud
Browse files

pupnp: remove duplicate logs

Change-Id: Iab2caaa3fb8377b7a42301c3635d70233f0cc623
parent 5e7a6465
Branches
No related tags found
No related merge requests found
......@@ -678,7 +678,6 @@ PUPnP::processAddMapAction(const Mapping& map)
runOnUpnpContextQueue([w = weak(), map] {
if (auto upnpThis = w.lock()) {
JAMI_DBG("PUPnP: Opened mapping %s", map.toString().c_str());
if (upnpThis->observer_)
upnpThis->observer_->onMappingAdded(map.getIgd(), std::move(map));
}
......@@ -975,7 +974,6 @@ PUPnP::handleCtrlPtUPnPEvents(Upnp_EventType event_type, const void* event)
// Even if the discovery search is successful, it's normal to receive
// time-out events. This because we send search requests using various
// device types, which some of them may not return a response.
JAMI_DBG("PUPnP: Received discovery search time-out");
break;
}
case UPNP_EVENT_RECEIVED: {
......@@ -1508,8 +1506,6 @@ PUPnP::actionAddPortMapping(const Mapping& mapping)
&response_container_ptr);
response.reset(response_container_ptr);
JAMI_DBG("PUPnP: Sent request to open port %s", mapping.toString().c_str());
bool success = true;
if (upnp_err != UPNP_E_SUCCESS) {
......@@ -1623,8 +1619,6 @@ PUPnP::actionDeletePortMapping(const Mapping& mapping)
success = false;
}
JAMI_DBG("PUPnP: Sent request to close port %s", mapping.toString().c_str());
return success;
}
......
......@@ -627,11 +627,6 @@ UPnPContext::updateMappingList(bool async)
mappingListUpdateTimer_ = getScheduler()->scheduleIn([this] { updateMappingList(false); },
MAP_UPDATE_INTERVAL);
JAMI_DBG("Current preferred protocol [%s] IGD [%s %s] ",
prefIgd->getProtocolName(),
prefIgd->getUID().c_str(),
prefIgd->toString().c_str());
// Process pending requests if any.
processPendingRequests(prefIgd);
......@@ -792,10 +787,6 @@ UPnPContext::pruneUnTrackedMappings(const std::shared_ptr<IGD>& igd,
auto it = mappingList.find(map.getMapKey());
if (it == mappingList.end()) {
// Not present, request mapping remove.
JAMI_DBG("Sending a remove request for un-tracked mapping %s on IGD %s",
map.toString().c_str(),
igd->toString().c_str());
// Add to the list.
toRemoveList.emplace_back(std::move(map));
// Make only few remove requests at once.
if (toRemoveList.size() >= MAX_REQUEST_REMOVE_COUNT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment