When enabled, log the root authentication username

This commit is contained in:
Tobie Morgan Hitchcock 2022-08-12 16:33:15 +01:00
parent 160fafc84a
commit 653ced7d58

View file

@ -14,7 +14,10 @@ pub async fn init() -> Result<(), Error> {
let opt = CF.get().unwrap(); let opt = CF.get().unwrap();
// Log authentication options // Log authentication options
match opt.pass { match opt.pass {
Some(_) => info!(target: LOG, "Root authentication is enabled"), Some(_) => {
info!(target: LOG, "Root authentication is enabled");
info!(target: LOG, "Root username is '{}'", opt.user);
}
None => info!(target: LOG, "Root authentication is disabled"), None => info!(target: LOG, "Root authentication is disabled"),
}; };
// All ok // All ok