Page MenuHomePhabricator

Add `-debuglogfile` option
ClosedPublic

Authored by Fabien on Jan 23 2019, 13:26.

Details

Summary

This patch adds an option to configure the name and/or directory of the
debug log.

The user can specify either a relative path, in which case the path
is relative to the data directory. They can also specify an absolute
path to put the log anywhere else in the file system.

Backport of core PR11781

Depends on D2393

Test Plan
./test/functional/test_runner.py feature_logging

bitcoind -debuglogfile=<path_to_debug_file>

Check the debug file is at the given location

bitcoind -debuglogfile=<path_to_inexistant directory>

Check an error is output:

Error: Could not open debug log file

Diff Detail

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

Event Timeline

Fabien removed a subscriber: teamcity.

Add timings.json

This revision is now accepted and ready to land.Jan 23 2019, 17:10
This revision was automatically updated to reflect the committed changes.