去除多余日志

This commit is contained in:
xiongziliang 2020-01-08 14:00:53 +08:00
parent 5d2864cff2
commit ab32ca39a9
2 changed files with 6 additions and 6 deletions

View File

@ -332,7 +332,7 @@ void RtmpProtocol::handle_C0C1() {
//complex handsharke //complex handsharke
handle_C1_complex(); handle_C1_complex();
#else #else
WarnL << "未打开ENABLE_OPENSSL宏复杂握手采用简单方式处理"; WarnL << "未打开ENABLE_OPENSSL宏复杂握手采用简单方式处理flash播放器可能无法播放";
handle_C1_simple(); handle_C1_simple();
#endif//ENABLE_OPENSSL #endif//ENABLE_OPENSSL
} }
@ -372,10 +372,10 @@ void RtmpProtocol::handle_C1_complex(){
check_C1_Digest(digest,c1_joined); check_C1_Digest(digest,c1_joined);
send_complex_S0S1S2(0,digest); send_complex_S0S1S2(0,digest);
InfoL << "schema0"; // InfoL << "schema0";
}catch(std::exception &ex){ }catch(std::exception &ex){
//貌似flash从来都不用schema1 //貌似flash从来都不用schema1
WarnL << "try rtmp complex schema0 failed:" << ex.what(); // WarnL << "try rtmp complex schema0 failed:" << ex.what();
try{ try{
/* c1s1 schema1 /* c1s1 schema1
time: 4bytes time: 4bytes
@ -389,9 +389,9 @@ void RtmpProtocol::handle_C1_complex(){
check_C1_Digest(digest,c1_joined); check_C1_Digest(digest,c1_joined);
send_complex_S0S1S2(1,digest); send_complex_S0S1S2(1,digest);
InfoL << "schema1"; // InfoL << "schema1";
}catch(std::exception &ex){ }catch(std::exception &ex){
WarnL << "try rtmp complex schema1 failed:" << ex.what(); // WarnL << "try rtmp complex schema1 failed:" << ex.what();
handle_C1_simple(); handle_C1_simple();
} }
} }

View File

@ -452,7 +452,7 @@ void RtmpSession::onProcessCmd(AMFDecoder &dec) {
std::string method = dec.load<std::string>(); std::string method = dec.load<std::string>();
auto it = s_cmd_functions.find(method); auto it = s_cmd_functions.find(method);
if (it == s_cmd_functions.end()) { if (it == s_cmd_functions.end()) {
TraceP(this) << "can not support cmd:" << method; // TraceP(this) << "can not support cmd:" << method;
return; return;
} }
_dNowReqID = dec.load<double>(); _dNowReqID = dec.load<double>();