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