Skip to content

Commit

Permalink
feat: replace redirect_stderr with args.verbose
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Dec 19, 2024
1 parent 4f97de3 commit ac59728
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ lru = "0.12.5"
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"

[profile.bench]
Expand Down
1 change: 0 additions & 1 deletion dragonfly-client-init/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ async fn main() -> Result<(), anyhow::Error> {
args.log_max_files,
None,
false,
false,
args.verbose,
);

Expand Down
1 change: 0 additions & 1 deletion dragonfly-client/src/bin/dfcache/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ async fn main() -> anyhow::Result<()> {
args.log_max_files,
None,
false,
false,
args.verbose,
);

Expand Down
1 change: 0 additions & 1 deletion dragonfly-client/src/bin/dfdaemon/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down
1 change: 0 additions & 1 deletion dragonfly-client/src/bin/dfget/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ async fn main() -> anyhow::Result<()> {
args.log_max_files,
None,
false,
false,
args.verbose,
);

Expand Down
1 change: 0 additions & 1 deletion dragonfly-client/src/bin/dfstore/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ fn main() {
args.log_max_files,
None,
false,
false,
args.verbose,
);
}
1 change: 1 addition & 0 deletions dragonfly-client/src/proxy/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use lru::LruCache;
use std::cmp::{max, min};
use std::num::NonZeroUsize;
use std::sync::{Arc, Mutex};
use tracing::info;

/// Cache is the cache for storing http response by LRU algorithm.
#[derive(Clone)]
Expand Down
3 changes: 1 addition & 2 deletions dragonfly-client/src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub fn init_tracing(
log_max_files: usize,
jaeger_addr: Option<String>,
flamegraph: bool,
redirect_stderr: bool,
verbose: bool,
) -> Vec<WorkerGuard> {
let mut guards = vec![];
Expand Down Expand Up @@ -135,7 +134,7 @@ pub fn init_tracing(
);

// Redirect stderr to file.
if redirect_stderr {
if !verbose {
redirect_stderr_to_file(log_dir);
}

Expand Down

0 comments on commit ac59728

Please sign in to comment.