From 38f27c450205df431635c03936eb5ab70291a4fa Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 30 Oct 2024 12:29:58 +0000 Subject: [PATCH] refactor(tvix/build): drop log level cli arg This does the same as cl/12585 did for tvix-cli. Change-Id: Ia2d693f5ad10feb81777c951bcd4489a3a83ad7c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12716 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: Ilan Joselevich --- tvix/build/src/bin/tvix-build.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tvix/build/src/bin/tvix-build.rs b/tvix/build/src/bin/tvix-build.rs index b840e031d..cb92f333e 100644 --- a/tvix/build/src/bin/tvix-build.rs +++ b/tvix/build/src/bin/tvix-build.rs @@ -4,7 +4,7 @@ use tokio_listener::Listener; use tokio_listener::SystemOptions; use tokio_listener::UserOptions; use tonic::{self, transport::Server}; -use tracing::{info, Level}; +use tracing::info; use tvix_build::{ buildservice, proto::{build_service_server::BuildServiceServer, GRPCBuildServiceWrapper}, @@ -25,13 +25,6 @@ static GLOBAL: MiMalloc = MiMalloc; #[derive(Parser)] #[command(author, version, about, long_about = None)] struct Cli { - /// 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, } @@ -57,9 +50,7 @@ enum Commands { async fn main() -> Result<(), Box> { let cli = Cli::parse(); - let _ = tvix_tracing::TracingBuilder::default() - .level(cli.log_level) - .enable_progressbar(); + let _ = tvix_tracing::TracingBuilder::default().enable_progressbar(); match cli.command { Commands::Daemon {