rest: make successful-ticket auth log a debug one to avoid syslog

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-10 17:05:09 +01:00
parent 9e7132c0b3
commit 1859a0eb8b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ impl RestEnvironment {
pub fn log_auth(&self, auth_id: &str) {
let msg = format!("successful auth for user '{}'", auth_id);
log::info!("{}", msg);
log::debug!("{}", msg); // avoid noisy syslog, admins can already check the auth log
if let Some(auth_logger) = self.api.get_auth_log() {
auth_logger.lock().unwrap().log(&msg);
}