优化日志

This commit is contained in:
xiongziliang 2018-04-09 11:26:39 +08:00
parent e63daba2f0
commit 9fe6587bd3
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit d01d88829a033b49dc3cfdb4418cf1b8225af68a
Subproject commit efa7c8ee4f1cc61cac11d32832a09d900008f44b

View File

@ -139,7 +139,7 @@ void HttpClient::onRecvBytes(const char* data, int size) {
for(auto &pr: _parser.getValues()){
printer << pr.first << ":" << pr.second << "\r\n";
}
FatalL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
ErrorL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
shutdown();
return;
}
@ -168,7 +168,7 @@ void HttpClient::onRecvBytes(const char* data, int size) {
for(auto &pr: _parser.getValues()){
printer << pr.first << ":" << pr.second << "\r\n";
}
FatalL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
ErrorL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
shutdown();
}

View File

@ -61,7 +61,7 @@ std::shared_ptr<uint32_t> MultiCastAddressMaker::obtain(uint32_t iTry) {
return obtain(--iTry);
}
//分配完了,应该不可能到这里
FatalL;
ErrorL;
return nullptr;
}
m_setBadAddr.emplace(iGotAddr);