From a61c0c2300014a0470ae058451df0594fd340a10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kleinb=C3=B6lting?= Date: Thu, 25 Jul 2024 17:45:19 +0200 Subject: [PATCH] add logging --- dsp-meta/src/repo/service/project_metadata_repository.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsp-meta/src/repo/service/project_metadata_repository.rs b/dsp-meta/src/repo/service/project_metadata_repository.rs index 3820cb16..7d595a5a 100644 --- a/dsp-meta/src/repo/service/project_metadata_repository.rs +++ b/dsp-meta/src/repo/service/project_metadata_repository.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use std::fs::File; use std::path::Path; use std::sync::{Arc, RwLock}; - +use log::info; use dsp_domain::metadata::value::Shortcode; use tracing::{instrument, trace}; @@ -18,11 +18,11 @@ pub struct ProjectMetadataRepository { impl ProjectMetadataRepository { pub fn new(data_path: &Path) -> Self { - trace!("Init Repository {:?}", data_path); + info!("Init Repository {:?}", data_path); let db: Arc>> = Arc::new(RwLock::new(HashMap::new())); let file_paths = load_json_file_paths(data_path); - trace!("Found {} projects", file_paths.len()); + info!("Found {} projects", file_paths.len()); let mut known_shortcodes: Vec = Vec::new(); for file in file_paths {