From f9d710b126d9f40e560938723476b509f2e7fb69 Mon Sep 17 00:00:00 2001 From: Sergei Vizel Date: Tue, 18 Sep 2018 13:51:05 +0300 Subject: [PATCH] remove tmp logs && debug output fix --- extensions/debug.go | 4 ++-- transport/websocket/websocket.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/debug.go b/extensions/debug.go index 5041eb1..7dde847 100644 --- a/extensions/debug.go +++ b/extensions/debug.go @@ -8,7 +8,7 @@ import ( ) func debugJson(v interface{}) string { - b, _ := json.MarshalIndent(v, "", " ") + b, _ := json.MarshalIndent(v, "", " ") return string(b) } @@ -20,7 +20,7 @@ type DebugExtension struct { func NewDebugExtension(out io.Writer) *DebugExtension { li := log.New(out, "InMsg", 0) - lo := log.New(out, "outMsg", 0) + lo := log.New(out, "OutMsg", 0) return &DebugExtension{in: li, out: lo} } diff --git a/transport/websocket/websocket.go b/transport/websocket/websocket.go index 271f550..88b5bfa 100644 --- a/transport/websocket/websocket.go +++ b/transport/websocket/websocket.go @@ -315,10 +315,10 @@ func (w *Websocket) Subscribe(channel string) (*subscription.Subscription, error //todo timeout here err := <-subRes if err != nil { - log.Println(err) + //log.Println(err) return nil, err } - log.Println(sub) + //log.Println(sub) return sub, nil }