mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-24 23:57:57 +01:00
log outcome of loading user db
This commit is contained in:
parent
9bd1b917a2
commit
41f8b83cd5
@ -8,6 +8,7 @@ use std::{env, io, io::Write, path::PathBuf};
|
|||||||
|
|
||||||
|
|
||||||
use nix::NixPath;
|
use nix::NixPath;
|
||||||
|
use diflouroborane::error::Error;
|
||||||
|
|
||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
@ -114,7 +115,11 @@ fn main() -> anyhow::Result<()> {
|
|||||||
unimplemented!()
|
unimplemented!()
|
||||||
} else if matches.is_present("load") {
|
} else if matches.is_present("load") {
|
||||||
let bffh = Diflouroborane::new(config)?;
|
let bffh = Diflouroborane::new(config)?;
|
||||||
bffh.users.load_file(matches.value_of("load").unwrap());
|
if bffh.users.load_file(matches.value_of("load").unwrap()).is_ok() {
|
||||||
|
tracing::info!("loaded users from {}", matches.value_of("load").unwrap());
|
||||||
|
} else {
|
||||||
|
tracing::error!("failed to load users from {}", matches.value_of("load").unwrap());
|
||||||
|
}
|
||||||
return Ok(())
|
return Ok(())
|
||||||
} else {
|
} else {
|
||||||
let keylog = matches.value_of("keylog");
|
let keylog = matches.value_of("keylog");
|
||||||
|
Loading…
Reference in New Issue
Block a user