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:
parent
01717fc8f5
commit
10e0d69d93
6 changed files with 52 additions and 88 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ const COPY_TYPES: &[PacketType] = &[
|
|||
];
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
#[cfg(feature = "trace")]
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
#[cfg(feature = "better_panic")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue