diff --git a/src/Rtmp/RtmpPusher.cpp b/src/Rtmp/RtmpPusher.cpp index c8813367..3b0b6c74 100644 --- a/src/Rtmp/RtmpPusher.cpp +++ b/src/Rtmp/RtmpPusher.cpp @@ -47,6 +47,7 @@ void RtmpPusher::teardown() { } void RtmpPusher::onPublishResult(const SockException &ex, bool handshake_done) { + DebugL << ex.what(); if (ex.getErrCode() == Err_shutdown) { //主动shutdown的,不触发回调 return; diff --git a/src/Rtsp/RtspPusher.cpp b/src/Rtsp/RtspPusher.cpp index 9ce2d56b..c19b0ce7 100644 --- a/src/Rtsp/RtspPusher.cpp +++ b/src/Rtsp/RtspPusher.cpp @@ -95,6 +95,7 @@ void RtspPusher::publish(const string &url_str) { } void RtspPusher::onPublishResult(const SockException &ex, bool handshake_done) { + DebugL << ex.what(); if (ex.getErrCode() == Err_shutdown) { //主动shutdown的,不触发回调 return;