From 035c6c669f96627bb46a0b6232dfe20ab3064281 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 16 May 2023 15:56:07 -0700 Subject: [PATCH] Formatting / Remove Debug --- app/plugins/contactRetry_test.go | 2 +- protocol/connections/engine.go | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/plugins/contactRetry_test.go b/app/plugins/contactRetry_test.go index ffeb204..d1c202e 100644 --- a/app/plugins/contactRetry_test.go +++ b/app/plugins/contactRetry_test.go @@ -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() diff --git a/protocol/connections/engine.go b/protocol/connections/engine.go index 34ec0f8..cb2030b 100644 --- a/protocol/connections/engine.go +++ b/protocol/connections/engine.go @@ -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) } }