mirror of https://gitee.com/bigwinds/arangodb
Improve log messages. (#7521)
This commit is contained in:
parent
be0f8b59fa
commit
a16fbf5df3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue