From 8487bafa57cf50590158679bb738e157a26ac36b Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Sat, 7 Mar 2026 16:00:55 +0100 Subject: [PATCH] changed log level on some functions --- src/file_conflict_solver.rs | 16 ++++++++-------- src/types/modded_instance.rs | 6 +++--- src/types/root_config.rs | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/file_conflict_solver.rs b/src/file_conflict_solver.rs index 6619a23..9e37533 100644 --- a/src/file_conflict_solver.rs +++ b/src/file_conflict_solver.rs @@ -6,10 +6,10 @@ use crate::types::{InstalledMod, ModFile}; #[derive(Debug)] pub struct Conflict<'a> { - rhs_mod: &'a InstalledMod, - lhs_mod: &'a InstalledMod, - rhs_file: &'a ModFile, - lhs_file: &'a ModFile, + pub rhs_mod: &'a InstalledMod, + pub lhs_mod: &'a InstalledMod, + pub rhs_file: &'a ModFile, + pub lhs_file: &'a ModFile, } pub struct ConflictSolver<'a> { @@ -31,10 +31,10 @@ impl<'a> ConflictSolver<'a> { let path = &file.dst().to_owned(); match self.files.get(path) { Some((current_file, current_file_mod)) => { - // debug!( - // "Trying to resolve file conflict between at {}", - // path.to_string_lossy() - // ); + debug!( + "Trying to resolve file conflict between at {}", + path.to_string_lossy() + ); if from_mod == *current_file_mod { // File from the same mod diff --git a/src/types/modded_instance.rs b/src/types/modded_instance.rs index 622750b..3ee6834 100644 --- a/src/types/modded_instance.rs +++ b/src/types/modded_instance.rs @@ -4,7 +4,7 @@ use std::{ path::{Path, PathBuf}, }; -use log::trace; +use log::debug; use serde::{Deserialize, Serialize}; use crate::types::{ConfigReadWriteError, installed_mod::InstalledMod, link::Link}; @@ -29,7 +29,7 @@ pub struct ModdedInstance { impl ModdedInstance { pub fn load_from_file(path: impl AsRef) -> Result { - trace!( + debug!( "Loading ModdedInstance from file: {}", path.as_ref().to_string_lossy() ); @@ -43,7 +43,7 @@ impl ModdedInstance { } pub fn save_to_file(&self) -> Result<(), ConfigReadWriteError> { - trace!( + debug!( "Saving ModdedInstance to: {}", self.self_path.to_string_lossy() ); diff --git a/src/types/root_config.rs b/src/types/root_config.rs index e4cc6a8..dc532f5 100644 --- a/src/types/root_config.rs +++ b/src/types/root_config.rs @@ -4,7 +4,7 @@ use std::{ path::{Path, PathBuf}, }; -use log::trace; +use log::debug; use serde::Deserialize; use crate::types::{ConfigReadWriteError, ModConfig, game::Game, modded_instance::ModdedInstance}; @@ -31,7 +31,7 @@ pub struct RootConfig { impl RootConfig { pub fn load_from_file(path: impl AsRef) -> Result { - trace!( + debug!( "Loading RootConfig from file: {}", path.as_ref().to_string_lossy() );