optimize log

This commit is contained in:
monktan
2020-10-23 09:47:14 +08:00
parent b49d377293
commit e95ed256ea
3 changed files with 4 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ const char *RtpProcess::onSearchPacketTail(const char *packet,int bytes){
}
return nullptr;
} catch (std::exception &ex) {
InfoL << "解析ps或ts异常: bytes=" << bytes
InfoP(this) << "解析ps或ts异常: bytes=" << bytes
<< " ,exception=" << ex.what();
//<< " ,hex=" << hexdump((uint8_t *) packet, bytes);
return nullptr;
@@ -184,7 +184,7 @@ bool RtpProcess::alive() {
if(_pause_rtp_time.elapsedTime()/ 1000 < 180){
return true;
}else {
WarnL << _media_info._streamid << ", pause timeout.";
ErrorP(this) << "Pause timeout.";
return false;
}
}

View File

@@ -8,6 +8,7 @@
* may be found in the AUTHORS file in the root of the source tree.
*/
#include <signal.h>
#include <map>
#include "Network/TcpClient.h"
using namespace std;