1
0
Fork 0

Set debug message trap for failing windows arangobench tests.

This commit is contained in:
Willi Goesgens 2015-02-17 14:27:25 +01:00
parent c306cda185
commit d61fc4343a
2 changed files with 9 additions and 1 deletions

View File

@ -229,6 +229,9 @@ Handler::status_t RestBatchHandler::execute () {
// error
generateError(HttpResponse::BAD, TRI_ERROR_HTTP_BAD_PARAMETER, "invalid multipart message received");
LOG_WARNING("received a corrupted multipart message");
#ifdef TRI_ENABLE_MAINTAINER_MODE
LOG_WARNING("We tried to analyse this:\n %s", _request->body());
#endif
return status_t(Handler::HANDLER_FAILED);
}

View File

@ -300,7 +300,12 @@ namespace triagens {
_warningCount++;
if (_warningCount < MaxWarnings) {
LOG_WARNING("batch operation failed with HTTP code %d", (int) result->getHttpReturnCode());
LOG_WARNING("batch operation failed with HTTP code %d - %s ",
(int) result->getHttpReturnCode(),
result->getHttpReturnMessage().c_str());
#ifdef TRI_ENABLE_MAINTAINER_MODE
LOG_WARNING("We tried to send this:\n %s", batchPayload.c_str());
#endif
}
else if (_warningCount == MaxWarnings) {
LOG_WARNING("...more warnings...");