Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711140
D7820.id24391.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D7820.id24391.diff
View Options
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -268,6 +268,10 @@
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;
}
diff --git a/test/functional/interface_rpc.py b/test/functional/interface_rpc.py
--- a/test/functional/interface_rpc.py
+++ b/test/functional/interface_rpc.py
@@ -4,6 +4,7 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Tests some generic aspects of the RPC interface."""
+import os
from test_framework.authproxy import JSONRPCException
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_greater_than_or_equal
@@ -34,6 +35,12 @@
command = info['active_commands'][0]
assert_equal(command['method'], 'getrpcinfo')
assert_greater_than_or_equal(command['duration'], 0)
+ assert_equal(
+ info['logpath'],
+ os.path.join(
+ self.nodes[0].datadir,
+ 'regtest',
+ 'debug.log'))
def test_batch_request(self):
self.log.info("Testing basic JSON-RPC batch request...")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 10:35 (6 m, 9 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5573289
Default Alt Text
D7820.id24391.diff (1 KB)
Attached To
D7820: Add a 'logpath' field to getrpcinfo
Event Timeline
Log In to Comment