mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
RTC: Refine log
This commit is contained in:
parent
70c3fc78af
commit
b20a68ad68
2 changed files with 4 additions and 4 deletions
|
@ -157,7 +157,7 @@ srs_error_t SrsSecurityTransport::on_dtls_handshake_done()
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
srs_trace("rtc session=%s, DTLS handshake done.", session_->id().c_str());
|
srs_trace("RTC session=%s, DTLS handshake done.", session_->id().c_str());
|
||||||
|
|
||||||
handshake_done = true;
|
handshake_done = true;
|
||||||
if ((err = srtp_initialize()) != srs_success) {
|
if ((err = srtp_initialize()) != srs_success) {
|
||||||
|
@ -391,7 +391,7 @@ srs_error_t SrsRtcPlayStream::cycle()
|
||||||
SrsPithyPrint* pprint = SrsPithyPrint::create_rtc_play();
|
SrsPithyPrint* pprint = SrsPithyPrint::create_rtc_play();
|
||||||
SrsAutoFree(SrsPithyPrint, pprint);
|
SrsAutoFree(SrsPithyPrint, pprint);
|
||||||
|
|
||||||
srs_trace("rtc session=%s, start play", session_->id().c_str());
|
srs_trace("RTC session=%s, start play", session_->id().c_str());
|
||||||
bool stat_enabled = _srs_config->get_rtc_server_perf_stat();
|
bool stat_enabled = _srs_config->get_rtc_server_perf_stat();
|
||||||
SrsStatistic* stat = SrsStatistic::instance();
|
SrsStatistic* stat = SrsStatistic::instance();
|
||||||
|
|
||||||
|
@ -2158,7 +2158,7 @@ srs_error_t SrsRtcConnection::on_binding_request(SrsStunPacket* r)
|
||||||
server_->insert_into_id_sessions(peer_id_, this);
|
server_->insert_into_id_sessions(peer_id_, this);
|
||||||
|
|
||||||
state_ = DOING_DTLS_HANDSHAKE;
|
state_ = DOING_DTLS_HANDSHAKE;
|
||||||
srs_trace("rtc session=%s, STUN done, waitting DTLS handshake.", id().c_str());
|
srs_trace("RTC session=%s, STUN done, waitting DTLS handshake.", id().c_str());
|
||||||
|
|
||||||
if((err = transport_->start_active_handshake()) != srs_success) {
|
if((err = transport_->start_active_handshake()) != srs_success) {
|
||||||
return srs_error_wrap(err, "fail to dtls handshake");
|
return srs_error_wrap(err, "fail to dtls handshake");
|
||||||
|
|
|
@ -455,7 +455,7 @@ void SrsRtcServer::check_and_clean_timeout_session()
|
||||||
// Now, we got the RTC session to cleanup, switch to its context
|
// Now, we got the RTC session to cleanup, switch to its context
|
||||||
// to make all logs write to the "correct" pid+cid.
|
// to make all logs write to the "correct" pid+cid.
|
||||||
session->switch_to_context();
|
session->switch_to_context();
|
||||||
srs_trace("rtc session=%s, STUN timeout", session->id().c_str());
|
srs_trace("RTC session=%s, STUN timeout", session->id().c_str());
|
||||||
|
|
||||||
session->disposing_ = true;
|
session->disposing_ = true;
|
||||||
zombies_.push_back(session);
|
zombies_.push_back(session);
|
||||||
|
|
Loading…
Reference in a new issue