diff options
author | darosior <darosior@protonmail.com> | 2019-05-16 23:01:00 +0200 |
---|---|---|
committer | darosior <darosior@protonmail.com> | 2019-05-16 23:01:00 +0200 |
commit | 8a6810d0d2759c69f63b53c48aa79e0cfdd88ffb (patch) | |
tree | db61adc3ef90d7e338c10860356bebfdebfdde13 /src/rpc/server.cpp | |
parent | 8f2f17f79a10ab3db13f95291d302f5eae3e3a91 (diff) |
Add a 'logpath' field to getrpcinfo
Diffstat (limited to 'src/rpc/server.cpp')
-rw-r--r-- | src/rpc/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 9df4070cbb..e9a373cb06 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -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; } |