Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
cfeb8d98
Commit
cfeb8d98
authored
Feb 02, 2021
by
Ivan Vilata-i-Balaguer
Browse files
Minor changes for internal consistency of logged messages.
parent
287b0389
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/upnp.h
View file @
cfeb8d98
...
...
@@ -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
m
apping enabled UDP EXT_PORT:"
,
_external_port
LOG_INFO
(
"UPnP
: M
apping 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
m
apping disabled"
);
LOG_WARN
(
"UPnP
: M
apping disabled"
);
}
_mapping_is_active
=
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment