about summary refs log tree commit diff
path: root/tvix/build
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-10-30T12·29+0000
committerclbot <clbot@tvl.fyi>2024-10-30T12·56+0000
commit38f27c450205df431635c03936eb5ab70291a4fa (patch)
tree6373cd066c58d0ac92599a615e3cec07f6ca7752 /tvix/build
parent6c13491fe0390b935a9ceb80904e2cb2b4a0a8a5 (diff)
refactor(tvix/build): drop log level cli arg r/8876
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 <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Diffstat (limited to 'tvix/build')
-rw-r--r--tvix/build/src/bin/tvix-build.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/tvix/build/src/bin/tvix-build.rs b/tvix/build/src/bin/tvix-build.rs
index b840e031db80..cb92f333effb 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<dyn std::error::Error + Send + Sync>> {
     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 {