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

Minor changes for internal consistency of logged messages.

parent 287b0389
......@@ -77,7 +77,7 @@ private:
if (!r_igds) {
mapping_disabled();
LOG_DEBUG("UPnP: No IGDs found, waiting.");
LOG_DEBUG("UPnP: No IGDs found, waiting");
async_sleep(exec, failure_wait_time, cancel, yield);
if (cancel) return;
continue;
......@@ -113,7 +113,7 @@ private:
earlier_buggy_timeout = mapping_timeout;
continue;
}
LOG_DEBUG("UPnP: Successfully added/refreshed one mapping.");
LOG_DEBUG("UPnP: Successfully added/refreshed one mapping");
success_cnt++;
mapping_enabled();
}
......@@ -143,14 +143,14 @@ private:
void mapping_enabled() {
if (!_mapping_is_active) {
LOG_INFO("UPnP mapping enabled UDP EXT_PORT:", _external_port
LOG_INFO("UPnP: Mapping enabled for UDP EXT_PORT:", _external_port
, " INT_PORT:", _internal_port);
}
_mapping_is_active = true;
}
void mapping_disabled() {
if (_mapping_is_active) {
LOG_WARN("UPnP mapping disabled");
LOG_WARN("UPnP: Mapping disabled");
}
_mapping_is_active = false;
}
......
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