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:
parent
d1c2777906
commit
f9f4f291da
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user