Better error message, and proper log level for StreamBufferProxy flushAsync

This commit is contained in:
lganzzzo 2018-10-03 21:06:22 +03:00
parent 897938bc28
commit fcd65a5842
2 changed files with 3 additions and 3 deletions

View File

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

View File

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