Add a 'logpath' field to getrpcinfo

This commit is contained in:
darosior
2019-05-16 23:01:00 +02:00
parent 8f2f17f79a
commit 8a6810d0d2
2 changed files with 6 additions and 0 deletions

View File

@@ -234,6 +234,10 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
UniValue result(UniValue::VOBJ);
result.pushKV("active_commands", active_commands);
const std::string path = LogInstance().m_file_path.string();
UniValue log_path(UniValue::VSTR, path);
result.pushKV("logpath", log_path);
return result;
}