sp_tracing

Function init_for_tests

source
pub fn init_for_tests()
Expand description

Init a tracing subscriber for logging in tests.

Be aware that this enables TRACE by default. It also ignores any error while setting up the logger.

The logs are not shown by default, logs are only shown when the test fails or if nocapture is being used.