]> git.proxmox.com Git - proxmox-backup.git/commitdiff
code cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Oct 2020 17:02:03 +0000 (19:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Oct 2020 11:58:47 +0000 (13:58 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/server/rest.rs
src/tools/file_logger.rs

index 8008b28c949b912cd80aab8ad3c0df5b73929fb0..6b20c57fb90854961366dd7f500fb8ed26901740 100644 (file)
@@ -521,9 +521,6 @@ async fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> Result<Respo
 
     let comp_len = components.len();
 
-    //println!("REQUEST {} {}", method, path);
-    //println!("COMPO {:?}", components);
-
     let env_type = api.env_type();
     let mut rpcenv = RestEnvironment::new(env_type);
 
index c41994f1da941845da9596eed87e9c3814a8adfc..48a0bae2c2b83b4a10e90ec9ee5ca512cb6a3abe 100644 (file)
@@ -1,4 +1,4 @@
-use anyhow::{Error};
+use anyhow::Error;
 use std::io::Write;
 
 /// Log messages with timestamps into files
@@ -46,7 +46,6 @@ impl FileLogger {
     }
 
     pub fn log<S: AsRef<str>>(&mut self, msg: S) {
-
         let msg = msg.as_ref();
 
         let mut stdout = std::io::stdout();