mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-28 21:52:22 +08:00
直接打印SockException类
This commit is contained in:
@@ -336,7 +336,7 @@ void RtpSender::onFlushRtpList(shared_ptr<List<Buffer::Ptr> > rtp_list) {
|
||||
|
||||
void RtpSender::onErr(const SockException &ex) {
|
||||
_is_connect = false;
|
||||
WarnL << "send rtp connection lost: " << ex.what();
|
||||
WarnL << "send rtp connection lost: " << ex;
|
||||
onClose(ex);
|
||||
}
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ void RtpServer::connectToServer(const std::string &url, uint16_t port, const fun
|
||||
return;
|
||||
}
|
||||
if (err) {
|
||||
WarnL << "连接到服务器 " << url << ":" << port << " 失败 " << err.what();
|
||||
WarnL << "连接到服务器 " << url << ":" << port << " 失败 " << err;
|
||||
} else {
|
||||
InfoL << "连接到服务器 " << url << ":" << port << " 成功";
|
||||
strong_self->onConnect();
|
||||
|
||||
@@ -60,7 +60,7 @@ void RtpSession::onRecv(const Buffer::Ptr &data) {
|
||||
}
|
||||
|
||||
void RtpSession::onError(const SockException &err) {
|
||||
WarnP(this) << _stream_id << " " << err.what();
|
||||
WarnP(this) << _stream_id << " " << err;
|
||||
}
|
||||
|
||||
void RtpSession::onManager() {
|
||||
|
||||
Reference in New Issue
Block a user