Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Jul 25, 2024
1 parent f962ce8 commit a61c0c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsp-meta/src/repo/service/project_metadata_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand All @@ -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<RwLock<HashMap<String, DraftMetadata>>> = 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<String> = Vec::new();
for file in file_paths {
Expand Down

0 comments on commit a61c0c2

Please sign in to comment.