From 653ced7d585e14d21fe3c2a3605c7f8a27848e12 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 12 Aug 2022 16:33:15 +0100 Subject: [PATCH] When enabled, log the root authentication username --- src/iam/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/iam/mod.rs b/src/iam/mod.rs index 53fa7179..c77229c5 100644 --- a/src/iam/mod.rs +++ b/src/iam/mod.rs @@ -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