mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Better error message, and proper log level for StreamBufferProxy flushAsync
This commit is contained in:
parent
897938bc28
commit
fcd65a5842
@ -130,7 +130,7 @@ oatpp::async::Action OutputStreamBufferedProxy::flushAsync(oatpp::async::Abstrac
|
||||
} else if(result > 0){
|
||||
m_stream->m_pos += (v_bufferSize) result;
|
||||
}
|
||||
return error("OutputStreamBufferedProxy. Failed to flush all data");
|
||||
return error("[oatpp::data::stream::OutputStreamBufferedProxy::flushAsync()]: Error - Failed to flush all data");
|
||||
}
|
||||
return finish();
|
||||
|
||||
|
@ -198,9 +198,9 @@ HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::onRequestDone() {
|
||||
HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::handleError(const oatpp::async::Error& error) {
|
||||
if(m_currentResponse) {
|
||||
if(error.isExceptionThrown) {
|
||||
OATPP_LOGD("Server", "Unhandled exception. Dropping connection");
|
||||
OATPP_LOGE("Server", "Unhandled exception. Dropping connection");
|
||||
} else {
|
||||
OATPP_LOGD("Server", "Unhandled error. '%s'. Dropping connection", error.message);
|
||||
OATPP_LOGE("Server", "Unhandled error. '%s'. Dropping connection", error.message);
|
||||
}
|
||||
return abort();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user