]> git.proxmox.com Git - proxmox-backup.git/commitdiff
rest: make successful-ticket auth log a debug one to avoid syslog
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Nov 2021 16:05:09 +0000 (17:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Nov 2021 10:10:12 +0000 (11:10 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-rest-server/src/environment.rs

index 3c77d145b111caa626a72c4f6d560501ecba0e9a..b1fa3a33d39eabc368633bccffbf4b0d50a3150d 100644 (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);
         }