Repository navigation
use tracing crate instead of log - #1020
Conversation
a51fc34 to
ef92391
Compare
Pull Request Test Coverage Report for Build 17331627962Details
💛 - Coveralls |
ef92391 to
bbbd35a
Compare
|
to view the logs when tests pass you need to run something like |
|
BTW, the |
This allows specifying RUST_LOG=trace,bitcoind=info to suppress bitcoind output, or RUST_LOG=bitcoind=trace to only show bitcoind output. The default level to enable it is also TRACE instead of DEBUG as of this commit.
a530f9a to
a0f6511
Compare
spacebear21
left a comment
There was a problem hiding this comment.
tACK a0f6511 and confirmed bitcoind logs are printed when RUST_LOG=trace
|
hmm, @DanGould you didn't say if you were convinced by my arguments for why this should get merged before 1.0, were you persuaded? |
|
Little's law. I wouldn't have added it to the queue, but leaving things on the queue otherwise slows us down. |
This makes logs events from the
payjoinandpayjoin-clicrates log using the tracing crate, like most of our dependencies and thepayjoin-directorycrate.The main rationale is that the
logcrate is effectively part of our public API, which necessitates the use of thetracing-logcrate to integrate with the tracing crate, which is more commonly used.The main visible effect of this is that payjoin crate output is now visible by default when running tests, previously on the tracing logs were initialized in
payjoin-test-utils, without using thetracing-logcrate (see #584), and without usingenv_logger.Related #509, #821
Supersedes #584
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.