mirror of https://gitee.com/bigwinds/arangodb
Set debug message trap for failing windows arangobench tests.
This commit is contained in:
parent
c306cda185
commit
d61fc4343a
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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...");
|
||||
|
|
Loading…
Reference in New Issue