mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
Merge #15483: rpc: Adding a 'logpath' entry to getrpcinfo
8a6810d0d2Add a 'logpath' field to getrpcinfo (darosior) Pull request description: as discussed in #15438 ACKs for top commit: laanwj: Tested ACK8a6810d0d2Tree-SHA512: 752c7d90f670677c8144efb338c5c97c2264f85f1e65e031fd5a44f04230b6eafbabd0f634db263eb42c25642ecc1c4b1b602d4735e3fab07ec00b566134ddab
This commit is contained in:
@@ -232,6 +232,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user