more info

This commit is contained in:
Marc Planard 2023-06-05 13:12:49 +02:00
parent bb28bb0c5e
commit a2372f9e9a
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
laser_id = 0
# Activate for more debug
debug = "true"
debug = true
# Redis URL as redis://IP:port/
redis_url = "redis://127.0.0.1:6379/"

View File

@ -45,7 +45,7 @@ fn run_all() -> LJResult<()> {
let config = Conf::new(&filename);
init_logging(&config);
let config = config?;
info!("Starting up");
info!("*** Starting up ***");
let mut rs = RedisCtrl::new(&config.redis_url)?;
@ -88,12 +88,12 @@ fn init_logging(config: &LJResult<Conf>) {
builder
.filter(None, LevelFilter::Info)
.init();
} else {
env_logger::init();
info!("Debug mode enabled from configuration file");
return;
}
} else {
env_logger::init();
}
info!("Logging level inherited from env");
env_logger::init();
}
fn get_helios_device() -> LJResult<NativeHeliosDac> {