From 8a6810d0d2759c69f63b53c48aa79e0cfdd88ffb Mon Sep 17 00:00:00 2001 From: darosior Date: Thu, 16 May 2019 23:01:00 +0200 Subject: Add a 'logpath' field to getrpcinfo --- src/rpc/server.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rpc/server.cpp') 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; } -- cgit v1.2.3