From e84aea5d11717a74b1c32f89cef81b520f3eea8c Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 13 Apr 2018 18:50:14 +0900 Subject: [PATCH] ing --- socket/readwrite.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/socket/readwrite.go b/socket/readwrite.go index a762798..e324e90 100644 --- a/socket/readwrite.go +++ b/socket/readwrite.go @@ -4,6 +4,8 @@ import ( "fmt" "io" "time" + + logging "git.loafle.net/commons/logging-go" ) func connReadHandler(readWriteHandler ReadWriteHandler, conn Conn, stopChan <-chan struct{}, doneChan chan<- error, readChan chan<- []byte) { @@ -77,11 +79,13 @@ func connWriteHandler(readWriteHandler ReadWriteHandler, conn Conn, stopChan <-c wc, err = conn.NextWriter(TextMessage) if err != nil { + logging.Logger().Debug(err) return } wc.Write(message) if err = wc.Close(); nil != err { + logging.Logger().Debug(err) return } case <-ticker.C: