When enabled, log the root authentication username
This commit is contained in:
parent
160fafc84a
commit
653ced7d58
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@ pub async fn init() -> Result<(), Error> {
|
|||
let opt = CF.get().unwrap();
|
||||
// Log authentication options
|
||||
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"),
|
||||
};
|
||||
// All ok
|
||||
|
|
Loading…
Reference in a new issue