1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine the colorful log for srs. remove the log when client close.

This commit is contained in:
winlin 2014-03-18 11:28:22 +08:00
parent 8029b7464a
commit e5770b10b1
6 changed files with 34 additions and 19 deletions

View file

@ -63,7 +63,7 @@ void SrsConnection::cycle()
ret = do_cycle();
// if socket io error, set to closed.
if (ret == ERROR_SOCKET_READ || ret == ERROR_SOCKET_READ_FULLY || ret == ERROR_SOCKET_WRITE) {
if (srs_is_client_gracefully_close(ret)) {
ret = ERROR_SOCKET_CLOSED;
}
@ -74,7 +74,7 @@ void SrsConnection::cycle()
// client close peer.
if (ret == ERROR_SOCKET_CLOSED) {
srs_trace("client disconnect peer. ret=%d", ret);
srs_warn("client disconnect peer. ret=%d", ret);
}
server->remove(this);