changed log level on some functions

This commit is contained in:
2026-03-07 16:00:55 +01:00
parent 6612a52e8c
commit 8487bafa57
3 changed files with 13 additions and 13 deletions

View File

@@ -6,10 +6,10 @@ use crate::types::{InstalledMod, ModFile};
#[derive(Debug)] #[derive(Debug)]
pub struct Conflict<'a> { pub struct Conflict<'a> {
rhs_mod: &'a InstalledMod, pub rhs_mod: &'a InstalledMod,
lhs_mod: &'a InstalledMod, pub lhs_mod: &'a InstalledMod,
rhs_file: &'a ModFile, pub rhs_file: &'a ModFile,
lhs_file: &'a ModFile, pub lhs_file: &'a ModFile,
} }
pub struct ConflictSolver<'a> { pub struct ConflictSolver<'a> {
@@ -31,10 +31,10 @@ impl<'a> ConflictSolver<'a> {
let path = &file.dst().to_owned(); let path = &file.dst().to_owned();
match self.files.get(path) { match self.files.get(path) {
Some((current_file, current_file_mod)) => { Some((current_file, current_file_mod)) => {
// debug!( debug!(
// "Trying to resolve file conflict between at {}", "Trying to resolve file conflict between at {}",
// path.to_string_lossy() path.to_string_lossy()
// ); );
if from_mod == *current_file_mod { if from_mod == *current_file_mod {
// File from the same mod // File from the same mod

View File

@@ -4,7 +4,7 @@ use std::{
path::{Path, PathBuf}, path::{Path, PathBuf},
}; };
use log::trace; use log::debug;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::types::{ConfigReadWriteError, installed_mod::InstalledMod, link::Link}; use crate::types::{ConfigReadWriteError, installed_mod::InstalledMod, link::Link};
@@ -29,7 +29,7 @@ pub struct ModdedInstance {
impl ModdedInstance { impl ModdedInstance {
pub fn load_from_file(path: impl AsRef<Path>) -> Result<Self, ConfigReadWriteError> { pub fn load_from_file(path: impl AsRef<Path>) -> Result<Self, ConfigReadWriteError> {
trace!( debug!(
"Loading ModdedInstance from file: {}", "Loading ModdedInstance from file: {}",
path.as_ref().to_string_lossy() path.as_ref().to_string_lossy()
); );
@@ -43,7 +43,7 @@ impl ModdedInstance {
} }
pub fn save_to_file(&self) -> Result<(), ConfigReadWriteError> { pub fn save_to_file(&self) -> Result<(), ConfigReadWriteError> {
trace!( debug!(
"Saving ModdedInstance to: {}", "Saving ModdedInstance to: {}",
self.self_path.to_string_lossy() self.self_path.to_string_lossy()
); );

View File

@@ -4,7 +4,7 @@ use std::{
path::{Path, PathBuf}, path::{Path, PathBuf},
}; };
use log::trace; use log::debug;
use serde::Deserialize; use serde::Deserialize;
use crate::types::{ConfigReadWriteError, ModConfig, game::Game, modded_instance::ModdedInstance}; use crate::types::{ConfigReadWriteError, ModConfig, game::Game, modded_instance::ModdedInstance};
@@ -31,7 +31,7 @@ pub struct RootConfig {
impl RootConfig { impl RootConfig {
pub fn load_from_file(path: impl AsRef<Path>) -> Result<Self, ConfigReadWriteError> { pub fn load_from_file(path: impl AsRef<Path>) -> Result<Self, ConfigReadWriteError> {
trace!( debug!(
"Loading RootConfig from file: {}", "Loading RootConfig from file: {}",
path.as_ref().to_string_lossy() path.as_ref().to_string_lossy()
); );