HomePhabricator

util: Log early messages

Authored by Anthony Towns <aj@erisian.com.au> on May 3 2018, 00:14.

Description

util: Log early messages

Summary:

Early log messages are dropped on the floor and they'd never make it to
the console or debug log. This can be tested by running the test
included in this pull request without re-compiling the bitcoind.

Fix that by buffering early messages and flushing them as soon as all
logging options have been initialized and logging has been started.

Backport of core PR16112.

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Committed
FabienThu, Mar 26, 10:19
Pushed
FabienThu, Mar 26, 10:19
Reviewer
Restricted Project
Differential Revision
D5553: util: Log early messages
Parents
rABC128a72855d5f: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown

Event Timeline

Fabien committed rABCd0af7ae7dfb9: util: Log early messages (authored by Anthony Towns <aj@erisian.com.au>).Thu, Mar 26, 10:19