more info
This commit is contained in:
parent
bb28bb0c5e
commit
a2372f9e9a
@ -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/"
|
||||||
|
10
src/main.rs
10
src/main.rs
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user