This commit is contained in:
crusader 2018-03-23 12:27:41 +09:00
parent a1cd140c1a
commit 4f607dd971
2 changed files with 4 additions and 6 deletions

View File

@ -80,13 +80,13 @@ func (s *netSocket) Context() SocketContext {
func (s *netSocket) Read(b []byte) (n int, err error) {
n, err = s.Conn.Read(b)
logging.Logger().Debugf("Client Socket: read message[%s]", string(b))
// logging.Logger().Debugf("Client Socket: read message[%s]", string(b))
return
}
func (s *netSocket) Write(b []byte) (n int, err error) {
logging.Logger().Debugf("Client Socket: write message[%s]", string(b))
// logging.Logger().Debugf("Client Socket: write message[%s]", string(b))
return s.Conn.Write(b)
}

View File

@ -4,8 +4,6 @@ import (
"net"
"sync"
"time"
"git.loafle.net/commons_go/logging"
)
type Socket interface {
@ -52,13 +50,13 @@ func (s *netSocket) ID() string {
func (s *netSocket) Read(b []byte) (n int, err error) {
n, err = s.Conn.Read(b)
logging.Logger().Debugf("Server Socket: read message[%s]", string(b))
// logging.Logger().Debugf("Server Socket: read message[%s]", string(b))
return
}
func (s *netSocket) Write(b []byte) (n int, err error) {
logging.Logger().Debugf("Server Socket: write message[%s]", string(b))
// logging.Logger().Debugf("Server Socket: write message[%s]", string(b))
return s.Conn.Write(b)
}