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:
		
							parent
							
								
									7133e1a4b1
								
							
						
					
					
						commit
						6c13491fe0
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -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 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue