Page MenuHomePhabricator

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

Authored by PiRK on Feb 1 2022, 14:07.

Details

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

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Feb 1 2022, 14:07
PiRK edited the summary of this revision. (Show Details)

update PR# and remove blank line

This revision is now accepted and ready to land.Feb 1 2022, 14:55