Commit 89fdad9c authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Some minimal debug logging of UPnP mapping addition.

parent 99e0d54d
......@@ -72,6 +72,7 @@ private:
if (!r_igds) {
mapping_disabled();
LOG_DEBUG("UPnP: No IGDs found, waiting.");
async_sleep(exec, failure_wait_time, cancel, yield);
if (cancel) return;
continue;
......@@ -79,6 +80,7 @@ private:
auto igds = move(r_igds.value());
LOG_DEBUG("UPnP: Adding mappings for \"", mapping_desc, "\"...");
size_t success_cnt = 0;
for(auto& igd : igds) {
auto cancelled = cancel.connect([&] { igd.stop(); });
......@@ -95,6 +97,7 @@ private:
mapping_enabled();
}
}
LOG_DEBUG("UPnP: Adding mappings for \"", mapping_desc, "\": done");
if (success_cnt == 0) mapping_disabled();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment