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
e598cf2b
Commit
e598cf2b
authored
Jan 26, 2015
by
Juan Batiz-Benet
Browse files
dropped down log.Errors
parent
ae0386cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
net/swarm/swarm_addr.go
View file @
e598cf2b
...
@@ -31,7 +31,7 @@ func (s *Swarm) InterfaceListenAddresses() ([]ma.Multiaddr, error) {
...
@@ -31,7 +31,7 @@ func (s *Swarm) InterfaceListenAddresses() ([]ma.Multiaddr, error) {
func
checkNATWarning
(
s
*
Swarm
,
observed
ma
.
Multiaddr
,
expected
ma
.
Multiaddr
)
{
func
checkNATWarning
(
s
*
Swarm
,
observed
ma
.
Multiaddr
,
expected
ma
.
Multiaddr
)
{
listen
,
err
:=
s
.
InterfaceListenAddresses
()
listen
,
err
:=
s
.
InterfaceListenAddresses
()
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
f
(
"Error retrieving swarm.InterfaceListenAddresses: %s"
,
err
)
log
.
Debug
f
(
"Error retrieving swarm.InterfaceListenAddresses: %s"
,
err
)
return
return
}
}
...
...
protocol/identify/id.go
View file @
e598cf2b
...
@@ -73,7 +73,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
...
@@ -73,7 +73,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
s
,
err
:=
c
.
NewStream
()
s
,
err
:=
c
.
NewStream
()
if
err
!=
nil
{
if
err
!=
nil
{
log
.
Error
(
"error opening initial stream for %s"
,
ID
)
log
.
Debugf
(
"error opening initial stream for %s"
,
ID
)
log
.
Event
(
context
.
TODO
(),
"IdentifyOpenFailed"
,
c
.
RemotePeer
())
log
.
Event
(
context
.
TODO
(),
"IdentifyOpenFailed"
,
c
.
RemotePeer
())
}
else
{
}
else
{
...
@@ -91,7 +91,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
...
@@ -91,7 +91,7 @@ func (ids *IDService) IdentifyConn(c inet.Conn) {
ids
.
currmu
.
Unlock
()
ids
.
currmu
.
Unlock
()
if
!
found
{
if
!
found
{
log
.
Error
f
(
"IdentifyConn failed to find channel (programmer error) for %s"
,
c
)
log
.
Debug
f
(
"IdentifyConn failed to find channel (programmer error) for %s"
,
c
)
return
return
}
}
...
...
protocol/mux.go
View file @
e598cf2b
...
@@ -109,7 +109,6 @@ func (m *Mux) HandleSync(s inet.Stream) {
...
@@ -109,7 +109,6 @@ func (m *Mux) HandleSync(s inet.Stream) {
name
,
handler
,
err
:=
m
.
readHeader
(
s
)
name
,
handler
,
err
:=
m
.
readHeader
(
s
)
if
err
!=
nil
{
if
err
!=
nil
{
err
=
fmt
.
Errorf
(
"protocol mux error: %s"
,
err
)
err
=
fmt
.
Errorf
(
"protocol mux error: %s"
,
err
)
log
.
Error
(
err
)
log
.
Event
(
ctx
,
"muxError"
,
lgbl
.
Error
(
err
))
log
.
Event
(
ctx
,
"muxError"
,
lgbl
.
Error
(
err
))
s
.
Close
()
s
.
Close
()
return
return
...
...
protocol/relay/relay.go
View file @
e598cf2b
...
@@ -46,7 +46,7 @@ func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService {
...
@@ -46,7 +46,7 @@ func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService {
// requestHandler is the function called by clients
// requestHandler is the function called by clients
func
(
rs
*
RelayService
)
requestHandler
(
s
inet
.
Stream
)
{
func
(
rs
*
RelayService
)
requestHandler
(
s
inet
.
Stream
)
{
if
err
:=
rs
.
handleStream
(
s
);
err
!=
nil
{
if
err
:=
rs
.
handleStream
(
s
);
err
!=
nil
{
log
.
Error
(
"RelayService error:"
,
err
)
log
.
Debugf
(
"RelayService error:"
,
err
)
}
}
}
}
...
...
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