Formatting / Remove Debug
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
462a294c93
commit
035c6c669f
|
@ -18,7 +18,7 @@ func TestContactRetryQueue(t *testing.T) {
|
|||
log.SetLevel(log.LevelDebug)
|
||||
bus := event.NewEventManager()
|
||||
cr := NewConnectionRetry(bus, "").(*contactRetry)
|
||||
cr.ACNUp = true // fake an ACN connection...
|
||||
cr.ACNUp = true // fake an ACN connection...
|
||||
cr.protocolEngine = true // fake protocol engine
|
||||
go cr.run()
|
||||
|
||||
|
|
|
@ -360,10 +360,7 @@ func (e *engine) peerWithOnion(onion string) {
|
|||
log.Debugf("Called PeerWithOnion for %v", onion)
|
||||
if !e.isBlocked(onion) {
|
||||
e.ignoreOnShutdown(e.peerConnecting)(onion)
|
||||
log.Debugf("PeerWithOnion Connecting %v", onion)
|
||||
connected, err := e.service.Connect(onion, e.createPeerTemplate())
|
||||
|
||||
log.Debugf("PeerWithOnion %v %v", onion, err)
|
||||
// If we are already connected...check if we are authed and issue an auth event
|
||||
// (This allows the ui to be stateless)
|
||||
if connected && err != nil {
|
||||
|
@ -373,13 +370,12 @@ func (e *engine) peerWithOnion(onion string) {
|
|||
e.ignoreOnShutdown(e.peerAuthed)(onion)
|
||||
return
|
||||
}
|
||||
log.Debugf("PeerWithOnion something went very wrong...%v %v", onion, err)
|
||||
log.Errorf("PeerWithOnion something went very wrong...%v %v", onion, err)
|
||||
if conn != nil {
|
||||
conn.Close()
|
||||
}
|
||||
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
||||
} else {
|
||||
log.Debugf("PeerWithOnion %v %v", onion, err)
|
||||
e.ignoreOnShutdown(e.peerDisconnected)(onion)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue