mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove some "Env::close" noise from unit test output
This commit is contained in:
committed by
manojsdoshi
parent
9eb9b8f631
commit
09ae9168ca
@@ -136,9 +136,15 @@ Env::close(
|
||||
auto resp = rpc("ledger_accept");
|
||||
if (resp["result"]["status"] != std::string("success"))
|
||||
{
|
||||
JLOG(journal.error())
|
||||
<< "Env::close() failed: " << resp["result"]["status"]
|
||||
<< std::endl;
|
||||
std::string reason = "internal error";
|
||||
if (resp.isMember("error_what"))
|
||||
reason = resp["error_what"].asString();
|
||||
else if (resp.isMember("error_message"))
|
||||
reason = resp["error_message"].asString();
|
||||
else if (resp.isMember("error"))
|
||||
reason = resp["error"].asString();
|
||||
|
||||
JLOG(journal.error()) << "Env::close() failed: " << reason;
|
||||
res = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user