refactor(tvix/cli/args): remove log-level argument

RUST_LOG allows for a more granular tracing configuration

Change-Id: Iea29fc2b154345eb7479dfd8bbea6abfd4716341
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12585
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Marijan Petričević 2024-10-08 12:42:33 -05:00
parent ac4a77d82f
commit ae9ff35c32
3 changed files with 0 additions and 12 deletions

View file

@ -1,7 +1,6 @@
use std::path::PathBuf;
use clap::Parser;
use tracing::Level;
use tvix_store::utils::ServiceUrlsMemory;
/// Provides a CLI interface to trigger evaluation using tvix-eval.
@ -14,13 +13,6 @@ use tvix_store::utils::ServiceUrlsMemory;
/// The CLI interface is not stable and subject to change.
#[derive(Parser, Clone)]
pub struct Args {
/// 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)]
pub log_level: Level,
/// Path to a script to evaluate
pub script: Option<PathBuf>,

View file

@ -53,7 +53,6 @@ fn main() {
let args = Args::parse();
let _ = tvix_tracing::TracingBuilder::default()
.level(args.log_level)
.enable_progressbar()
.build()
.expect("unable to set up tracing subscriber");