1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

make tracing optional

This commit is contained in:
Robin Appelman 2022-05-07 16:31:38 +02:00
commit 10e0d69d93
6 changed files with 52 additions and 88 deletions

View file

@ -12,6 +12,7 @@ fn main() -> Result<(), MainError> {
#[cfg(feature = "better_panic")]
better_panic::install();
#[cfg(feature = "trace")]
tracing_subscriber::fmt::init();
let args: Vec<_> = env::args().collect();

View file

@ -23,6 +23,7 @@ const COPY_TYPES: &[PacketType] = &[
];
fn main() -> Result<(), MainError> {
#[cfg(feature = "trace")]
tracing_subscriber::fmt::init();
#[cfg(feature = "better_panic")]