From f9f4f291da27b5ba3d73f182021c671425bd695c Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 9 Apr 2020 09:52:58 -0700 Subject: [PATCH] use debug instead of warn/error addresses #205 --- src/comm/comm.go | 2 +- src/tcp/tcp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm/comm.go b/src/comm/comm.go index 4dc1ed4b..8e922d66 100644 --- a/src/comm/comm.go +++ b/src/comm/comm.go @@ -101,7 +101,7 @@ func (c *Comm) Read() (buf []byte, numBytes int, bs []byte, err error) { numBytes = int(numBytesUint32) if numBytes > MAXBYTES { err = fmt.Errorf("too many bytes: %d", numBytes) - logger.Error(err) + logger.Debug(err) return } buf = make([]byte, 0) diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index 247cffdf..420ab053 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -101,7 +101,7 @@ func (s *server) run() (err error) { c := comm.New(connection) room, errCommunication := s.clientCommuncation(port, c) if errCommunication != nil { - log.Warnf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error()) + log.Debugf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error()) } for { // check connection