HomePhabricator

Add a 'logpath' field to getrpcinfo

Description

Add a 'logpath' field to getrpcinfo

Summary:
The location of log files depends on the operating system and on which network you're using.
This provides a cross-platform way of finding the debug.log file.

Usage example:

tail -f `bitcoin-cli getrpcinfo | awk '/logpath/ {print $2}' | tr -d \"`

Backport of Core PR15483

Test Plan:

ninja && ./test/functional/test_runner.py interface_rpc
src/bitcoin-cli getrpcinfo

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7820

Details

Provenance
darosior <darosior@protonmail.com>Authored on May 16 2019, 21:01
PiRKCommitted on Oct 8 2020, 16:07
PiRKPushed on Oct 8 2020, 16:07
Reviewer
Restricted Owners Package
Differential Revision
D7820: Add a 'logpath' field to getrpcinfo
Parents
rABCc835e67dda5f: rpc: Clarify that block count means height excl genesis
Branches
Unknown
Tags
Unknown