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

@ -1 +1 @@
Subproject commit d54285e96260e6d56d68929ec9ace402b83ff6b0
Subproject commit 66033ee4750a147a76ed5ff7785385e713d45926

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;