Page MenuHomePhabricator

Add a 'logpath' field to getrpcinfo
ClosedPublic

Authored by PiRK on Oct 8 2020, 14:18.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC876dd2bb482f: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 8 2020, 14:18
PiRK requested review of this revision.Oct 8 2020, 14:18

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

deadalnix edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Oct 8 2020, 15:44
This revision was automatically updated to reflect the committed changes.