added build vars
This commit is contained in:
@@ -4,6 +4,7 @@ use std::{
|
||||
};
|
||||
|
||||
use config::CuddleConfig;
|
||||
use tracing::Level;
|
||||
|
||||
mod actions;
|
||||
mod cli;
|
||||
@@ -23,6 +24,7 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
Err(_) => {
|
||||
// Only build bare bones cli
|
||||
log::info!("was not opened in a repo with git, only showing bare-bones options");
|
||||
_ = cli::CuddleCli::new(Arc::new(Mutex::new(vec![])))?.execute()?;
|
||||
}
|
||||
}
|
||||
@@ -31,7 +33,10 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
fn init_logging() -> anyhow::Result<()> {
|
||||
tracing_subscriber::fmt().pretty().init();
|
||||
tracing_subscriber::fmt()
|
||||
.pretty()
|
||||
.with_max_level(Level::INFO)
|
||||
.init();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user