Rocket/core/lib
Sergio Benitez 8573b6069f Use 'print' for logging in debug.
In cc98f98, logging was changed to use a new 'write_out!' macro that
internally used 'write!' instead of 'print!' to log. This had an
unfortunate side-effect: 'libtest' via 'cargo test' no longer captures
the log output of tests.

The reason this occurs is due to the way that Cargo, or rather
`libtest`, captures log output: it uses hidden, unstable functions that
replace a special sink that `print!`, and _only_ `print!` writes to.
Using `write!` directly, as the commit does, bypasses this sink, and so
`cargo` never captures the output.

As a compromise, we only use the better implementation when we're not
compiled with `debug_assertions` or running tests, so at least tests run
in debug-mode won't spew output.
2022-04-14 15:01:51 -07:00
..
fuzz Fuzz URI parsing and display. 2021-06-06 21:52:44 -07:00
src Use 'print' for logging in debug. 2022-04-14 15:01:51 -07:00
tests Remove 'CookieJar::get_private_pending()'. 2022-02-17 11:04:30 -08:00
build.rs Apply clippy suggestions. 2021-06-30 14:13:19 -07:00
Cargo.toml Make HTTP/2 optional via 'http2' feature. 2022-03-08 15:13:24 -08:00