mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-30 16:59:30 +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){
|
} else if(result > 0){
|
||||||
m_stream->m_pos += (v_bufferSize) result;
|
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();
|
return finish();
|
||||||
|
|
||||||
|
@ -198,9 +198,9 @@ HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::onRequestDone() {
|
|||||||
HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::handleError(const oatpp::async::Error& error) {
|
HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::handleError(const oatpp::async::Error& error) {
|
||||||
if(m_currentResponse) {
|
if(m_currentResponse) {
|
||||||
if(error.isExceptionThrown) {
|
if(error.isExceptionThrown) {
|
||||||
OATPP_LOGD("Server", "Unhandled exception. Dropping connection");
|
OATPP_LOGE("Server", "Unhandled exception. Dropping connection");
|
||||||
} else {
|
} else {
|
||||||
OATPP_LOGD("Server", "Unhandled error. '%s'. Dropping connection", error.message);
|
OATPP_LOGE("Server", "Unhandled error. '%s'. Dropping connection", error.message);
|
||||||
}
|
}
|
||||||
return abort();
|
return abort();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user