diff --git a/Cargo.toml b/Cargo.toml index 857335c1..59082da8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -108,7 +108,6 @@ lru = "0.12.5" opt-level = "z" lto = true codegen-units = 1 -panic = "abort" strip = "symbols" [profile.bench] diff --git a/dragonfly-client-init/src/bin/main.rs b/dragonfly-client-init/src/bin/main.rs index 3b7f1d93..e23a1f59 100644 --- a/dragonfly-client-init/src/bin/main.rs +++ b/dragonfly-client-init/src/bin/main.rs @@ -95,7 +95,6 @@ async fn main() -> Result<(), anyhow::Error> { args.log_max_files, None, false, - false, args.verbose, ); diff --git a/dragonfly-client/src/bin/dfcache/main.rs b/dragonfly-client/src/bin/dfcache/main.rs index 97c2a3a4..b2831733 100644 --- a/dragonfly-client/src/bin/dfcache/main.rs +++ b/dragonfly-client/src/bin/dfcache/main.rs @@ -157,7 +157,6 @@ async fn main() -> anyhow::Result<()> { args.log_max_files, None, false, - false, args.verbose, ); diff --git a/dragonfly-client/src/bin/dfdaemon/main.rs b/dragonfly-client/src/bin/dfdaemon/main.rs index b17225cf..94e5cf54 100644 --- a/dragonfly-client/src/bin/dfdaemon/main.rs +++ b/dragonfly-client/src/bin/dfdaemon/main.rs @@ -152,7 +152,6 @@ async fn main() -> Result<(), anyhow::Error> { args.log_max_files, config.tracing.addr.to_owned(), config.tracing.flamegraph, - true, args.verbose, ); diff --git a/dragonfly-client/src/bin/dfget/main.rs b/dragonfly-client/src/bin/dfget/main.rs index 529fbd2f..0bbf2319 100644 --- a/dragonfly-client/src/bin/dfget/main.rs +++ b/dragonfly-client/src/bin/dfget/main.rs @@ -276,7 +276,6 @@ async fn main() -> anyhow::Result<()> { args.log_max_files, None, false, - false, args.verbose, ); diff --git a/dragonfly-client/src/bin/dfstore/main.rs b/dragonfly-client/src/bin/dfstore/main.rs index d3812c90..ff941e6a 100644 --- a/dragonfly-client/src/bin/dfstore/main.rs +++ b/dragonfly-client/src/bin/dfstore/main.rs @@ -127,7 +127,6 @@ fn main() { args.log_max_files, None, false, - false, args.verbose, ); } diff --git a/dragonfly-client/src/tracing/mod.rs b/dragonfly-client/src/tracing/mod.rs index 4032e324..e9ce9cf1 100644 --- a/dragonfly-client/src/tracing/mod.rs +++ b/dragonfly-client/src/tracing/mod.rs @@ -40,7 +40,6 @@ pub fn init_tracing( log_max_files: usize, jaeger_addr: Option, flamegraph: bool, - redirect_stderr: bool, verbose: bool, ) -> Vec { let mut guards = vec![]; @@ -135,7 +134,7 @@ pub fn init_tracing( ); // Redirect stderr to file. - if redirect_stderr { + if !verbose { redirect_stderr_to_file(log_dir); }