From 9f8183deb064215ba658359ed63e270f5bfa3b7d Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Sun, 1 Jul 2018 14:48:18 +0100 Subject: [PATCH] Remove some extra debug prints --- src/api/core/ciphers.rs | 1 - src/api/core/mod.rs | 6 ------ src/api/identity.rs | 1 - 3 files changed, 8 deletions(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 2078c30f..f22ec503 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -397,7 +397,6 @@ fn post_attachment(uuid: String, data: Data, content_type: &ContentType, headers }; let attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size); - println!("Attachment: {:#?}", attachment); attachment.save(&conn); }).expect("Error processing multipart data"); diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index be5f2cf6..d57e9715 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -109,9 +109,6 @@ use auth::Headers; #[put("/devices/identifier//clear-token", data = "")] fn clear_device_token(uuid: String, data: Json, headers: Headers, conn: DbConn) -> EmptyResult { - println!("UUID: {:#?}", uuid); - println!("DATA: {:#?}", data); - let device = match Device::find_by_uuid(&uuid, &conn) { Some(device) => device, None => err!("Device not found") @@ -128,9 +125,6 @@ fn clear_device_token(uuid: String, data: Json, headers: Headers, conn: D #[put("/devices/identifier//token", data = "")] fn put_device_token(uuid: String, data: Json, headers: Headers, conn: DbConn) -> JsonResult { - println!("UUID: {:#?}", uuid); - println!("DATA: {:#?}", data); - let device = match Device::find_by_uuid(&uuid, &conn) { Some(device) => device, None => err!("Device not found") diff --git a/src/api/identity.rs b/src/api/identity.rs index 4eace645..e06eb1f4 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -19,7 +19,6 @@ pub fn routes() -> Vec { #[post("/connect/token", data = "")] fn login(connect_data: Form, device_type: DeviceType, conn: DbConn) -> JsonResult { let data = connect_data.get(); - println!("{:#?}", data); match data.grant_type { GrantType::RefreshToken =>_refresh_login(data, device_type, conn),