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:
parent
9e7132c0b3
commit
1859a0eb8b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user