优化日志

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

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();
}