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 laser_id = 0
# Activate for more debug # Activate for more debug
debug = "true" debug = true
# Redis URL as redis://IP:port/ # Redis URL as redis://IP:port/
redis_url = "redis://127.0.0.1:6379/" redis_url = "redis://127.0.0.1:6379/"

View File

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