diff --git a/src/auth.rs b/src/auth.rs index 5c64312..1e5afc5 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -5,7 +5,7 @@ use actix_web::{ }; use chrono::{Duration, Utc}; use jsonwebtoken::{encode, EncodingKey, Header}; -use log::{debug, error}; +use log::{error, info}; use std::sync::Mutex; use crate::{ @@ -36,7 +36,7 @@ pub async fn login( creds: Json, user_dao: web::Data>, ) -> HttpResponse { - debug!("Logging in: {}", creds.username); + info!("Logging in: {}", creds.username); let mut user_dao = user_dao.lock().expect("Unable to get UserDao"); diff --git a/src/files.rs b/src/files.rs index 8f64730..977d45f 100644 --- a/src/files.rs +++ b/src/files.rs @@ -39,12 +39,6 @@ pub async fn list_photos( return dao .get_files_with_tag_ids(tag_ids.clone()) - .map(|tagged_file| { - tagged_file - .iter() - .map(|photo_name| photo_name.clone()) - .collect() - }) .context(format!("Failed to files with tag_ids: {:?}", tag_ids)) .map(|tagged_files| { HttpResponse::Ok().json(PhotosResponse {