Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
62d4f170
Commit
62d4f170
authored
Feb 06, 2015
by
Brian Tiger Chow
Browse files
misc: suppress logs to Debug (from Info)
parent
9c83bd09
Changes
2
Show whitespace changes
Inline
Side-by-side
nat/nat.go
View file @
62d4f170
...
...
@@ -320,7 +320,7 @@ func (nat *NAT) establishMapping(m *mapping) {
failure
:=
func
()
{
m
.
setExternalPort
(
0
)
// clear mapping
// TODO: log.Event
log
.
Info
f
(
"failed to establish port mapping: %s"
,
err
)
log
.
Debug
f
(
"failed to establish port mapping: %s"
,
err
)
nat
.
Notifier
.
notifyAll
(
func
(
n
Notifiee
)
{
n
.
MappingFailed
(
nat
,
m
,
oldport
,
err
)
})
...
...
@@ -344,7 +344,7 @@ func (nat *NAT) establishMapping(m *mapping) {
log
.
Debugf
(
"NAT Mapping: %s --> %s"
,
m
.
InternalAddr
(),
ext
)
if
oldport
!=
0
&&
newport
!=
oldport
{
log
.
Info
f
(
"failed to renew same port mapping: ch %d -> %d"
,
oldport
,
newport
)
log
.
Debug
f
(
"failed to renew same port mapping: ch %d -> %d"
,
oldport
,
newport
)
nat
.
Notifier
.
notifyAll
(
func
(
n
Notifiee
)
{
n
.
MappingChanged
(
nat
,
m
,
oldport
,
newport
)
})
...
...
protocol/mux.go
View file @
62d4f170
...
...
@@ -110,7 +110,7 @@ func (m *Mux) HandleSync(s inet.Stream) {
return
}
log
.
Info
f
(
"muxer handle protocol %s: %s"
,
s
.
Conn
()
.
RemotePeer
(),
name
)
log
.
Debug
f
(
"muxer handle protocol %s: %s"
,
s
.
Conn
()
.
RemotePeer
(),
name
)
handler
(
s
)
}
...
...
Write
Preview
Markdown
is supported
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