HomePhabricator

log: Prefix log messages with function name if -logsourcelocations is set

Description

log: Prefix log messages with function name if -logsourcelocations is set

Summary:

Prefix log messages with function name if -logfunctionnames is set, exactly like `-logthreadnames but for function names instead of thread names.

This is a small developer ergonomics improvement: I've found this to be a cheap/simple way to correlate log output and originating function.

This is a backport of core#19809

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Aug 25 2020, 20:22
PiRKCommitted on Feb 2 2022, 09:47
PiRKPushed on Feb 2 2022, 09:47
Reviewer
Restricted Project
Differential Revision
D10951: log: Prefix log messages with function name if -logsourcelocations is set
Parents
rABCe4ef397e3c6c: [p2p] Small follow-ups to 21528
Branches
Unknown
Tags
Unknown