This PR removes the use of __func__
from index logging, since we have -logsourcelocations
.
It also improves readability by putting GetName()
in a more logical place.
Before
coinstatsindex: best block of the index not found. Please rebuild the index.
After:
best block of coinstatsindex not found. Please rebuild the index.
I found myself maintaining this commit as part of https://github.com/Sjors/bitcoin/pull/86, but since that might never land here, it seemed better to split it into its own PR (or get rid of it).