refactor(tvix/store): drop log level cli arg

This does the same as cl/12585 did for tvix-cli.

Change-Id: I35215947f3616acd65654c2bbdb19d0c360b568b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12714
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2024-10-30 12:05:05 +00:00 committed by clbot
parent 7133e1a4b1
commit 6c13491fe0

View file

@ -56,13 +56,6 @@ struct Cli {
#[arg(long, default_missing_value = "true", default_value = "true", num_args(0..=1), require_equals(true), action(clap::ArgAction::Set))]
otlp: bool,
/// A global log level to use when printing logs.
/// It's also possible to set `RUST_LOG` according to
/// `tracing_subscriber::filter::EnvFilter`, which will always have
/// priority.
#[arg(long, default_value_t=Level::INFO)]
log_level: Level,
#[command(subcommand)]
command: Commands,
}
@ -522,7 +515,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let tracing_handle = {
let mut builder = tvix_tracing::TracingBuilder::default();
builder = builder.level(cli.log_level).enable_progressbar();
builder = builder.enable_progressbar();
#[cfg(feature = "otlp")]
{
if cli.otlp {