Skip to content

Commit

Permalink
Add tracing subscriber (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
maackle authored Sep 20, 2024
1 parent 6bbd604 commit b42fc3d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/lair_keystore/src/bin/lair-keystore-bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,16 @@ async fn get_config(
}

async fn exec() -> LairResult<()> {
tracing::subscriber::set_global_default(
tracing_subscriber::FmtSubscriber::builder()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.compact()
.finish(),
)
.unwrap();

tracing::info!("starting lair-keystore");

let opt = Opt::from_args();
let Opt { lair_root, cmd } = opt;
let lair_root = dunce::canonicalize(&lair_root)?;
Expand Down

0 comments on commit b42fc3d

Please sign in to comment.