mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
use debug instead of warn/error addresses #205
This commit is contained in:
parent
d1c2777906
commit
f9f4f291da
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ func (c *Comm) Read() (buf []byte, numBytes int, bs []byte, err error) {
|
||||||
numBytes = int(numBytesUint32)
|
numBytes = int(numBytesUint32)
|
||||||
if numBytes > MAXBYTES {
|
if numBytes > MAXBYTES {
|
||||||
err = fmt.Errorf("too many bytes: %d", numBytes)
|
err = fmt.Errorf("too many bytes: %d", numBytes)
|
||||||
logger.Error(err)
|
logger.Debug(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
buf = make([]byte, 0)
|
buf = make([]byte, 0)
|
||||||
|
|
|
@ -101,7 +101,7 @@ func (s *server) run() (err error) {
|
||||||
c := comm.New(connection)
|
c := comm.New(connection)
|
||||||
room, errCommunication := s.clientCommuncation(port, c)
|
room, errCommunication := s.clientCommuncation(port, c)
|
||||||
if errCommunication != nil {
|
if errCommunication != nil {
|
||||||
log.Warnf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error())
|
log.Debugf("relay-%s: %s", connection.RemoteAddr().String(), errCommunication.Error())
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
// check connection
|
// check connection
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue