Commit 9fe6587b by xiongziliang

优化日志

parent e63daba2
Subproject commit d01d88829a033b49dc3cfdb4418cf1b8225af68a Subproject commit efa7c8ee4f1cc61cac11d32832a09d900008f44b
...@@ -139,7 +139,7 @@ void HttpClient::onRecvBytes(const char* data, int size) { ...@@ -139,7 +139,7 @@ void HttpClient::onRecvBytes(const char* data, int size) {
for(auto &pr: _parser.getValues()){ for(auto &pr: _parser.getValues()){
printer << pr.first << ":" << pr.second << "\r\n"; printer << pr.first << ":" << pr.second << "\r\n";
} }
FatalL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl); ErrorL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
shutdown(); shutdown();
return; return;
} }
...@@ -168,7 +168,7 @@ void HttpClient::onRecvBytes(const char* data, int size) { ...@@ -168,7 +168,7 @@ void HttpClient::onRecvBytes(const char* data, int size) {
for(auto &pr: _parser.getValues()){ for(auto &pr: _parser.getValues()){
printer << pr.first << ":" << pr.second << "\r\n"; printer << pr.first << ":" << pr.second << "\r\n";
} }
FatalL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl); ErrorL << _totalBodySize << ":" << _recvedBodySize << "\r\n" << (printer << endl);
shutdown(); shutdown();
} }
......
...@@ -61,7 +61,7 @@ std::shared_ptr<uint32_t> MultiCastAddressMaker::obtain(uint32_t iTry) { ...@@ -61,7 +61,7 @@ std::shared_ptr<uint32_t> MultiCastAddressMaker::obtain(uint32_t iTry) {
return obtain(--iTry); return obtain(--iTry);
} }
//分配完了,应该不可能到这里 //分配完了,应该不可能到这里
FatalL; ErrorL;
return nullptr; return nullptr;
} }
m_setBadAddr.emplace(iGotAddr); m_setBadAddr.emplace(iGotAddr);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论