1
0
Fork 0

Improve log messages. (#7521)

This commit is contained in:
Max Neunhöffer 2018-11-29 11:30:52 +01:00 committed by GitHub
parent be0f8b59fa
commit a16fbf5df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -284,10 +284,11 @@ static arangodb::Result addShardFollower(
if (result == nullptr || result->getHttpReturnCode() != 200) {
if (lockJobId != 0) {
errorMessage += comres->stringifyErrorMessage();
LOG_TOPIC(ERR, Logger::MAINTENANCE) << errorMessage;
} else {
errorMessage += "with shortcut.";
errorMessage += "With shortcut (can happen, no problem).";
LOG_TOPIC(INFO, Logger::MAINTENANCE) << errorMessage;
}
LOG_TOPIC(ERR, Logger::MAINTENANCE) << errorMessage;
return arangodb::Result(TRI_ERROR_INTERNAL, errorMessage);
}