Show CLI version in debug logs

This commit is contained in:
Félix Saparelli 2022-03-16 00:00:19 +13:00
parent da22d34274
commit aeb699b658
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
use std::env::var;
use miette::{IntoDiagnostic, Result};
use tracing::debug;
use watchexec::{event::Event, Watchexec};
mod args;
@ -47,6 +48,8 @@ async fn main() -> Result<()> {
}
}
debug!(version=%env!("CARGO_PKG_VERSION"), "constructing Watchexec from CLI");
let init = config::init(&args)?;
let mut runtime = config::runtime(&args)?;
runtime.filterer(if tagged_filterer {