fix(tvix/tracing): Enable tracing in tvix-build.
Change-Id: Ica9734d7774da4d5e2a5cacab6b9feb27becc3e2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12720 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
9e294db820
commit
4ec9a4b7df
3 changed files with 5 additions and 2 deletions
|
@ -50,7 +50,9 @@ enum Commands {
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
|
|
||||||
let _ = tvix_tracing::TracingBuilder::default().enable_progressbar();
|
tvix_tracing::TracingBuilder::default()
|
||||||
|
.enable_progressbar()
|
||||||
|
.build()?;
|
||||||
|
|
||||||
match cli.command {
|
match cli.command {
|
||||||
Commands::Daemon {
|
Commands::Daemon {
|
||||||
|
|
|
@ -57,7 +57,7 @@ fn lint(code: &str, path: Option<PathBuf>, args: &Args) -> bool {
|
||||||
fn main() {
|
fn main() {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
let _ = tvix_tracing::TracingBuilder::default()
|
tvix_tracing::TracingBuilder::default()
|
||||||
.enable_progressbar()
|
.enable_progressbar()
|
||||||
.build()
|
.build()
|
||||||
.expect("unable to set up tracing subscriber");
|
.expect("unable to set up tracing subscriber");
|
||||||
|
|
|
@ -145,6 +145,7 @@ impl TracingHandle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use = "Don't forget to call build() to enable tracing."]
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub struct TracingBuilder {
|
pub struct TracingBuilder {
|
||||||
progess_bar: bool,
|
progess_bar: bool,
|
||||||
|
|
Loading…
Add table
Reference in a new issue