1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

use debug instead of warn/error addresses #205

This commit is contained in:
Zack Scholl 2020-04-09 09:52:58 -07:00
parent d1c2777906
commit f9f4f291da
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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