Skip to content

Commit ef631e1

Browse files
authored
fix: remove println macro in favour of log::debug (#11)
* remove println macro in favour of log::debug
1 parent e421545 commit ef631e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/config/models.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use log::debug;
12
use serde::{Deserialize, Serialize};
23
use std::fs;
34
use std::path::PathBuf;
@@ -43,7 +44,7 @@ fn get_config(config_path: &PathBuf) -> AppConfig {
4344
match fs::read_to_string(config_path) {
4445
Ok(content) => match serde_yaml::from_str(&content) {
4546
Ok(config) => {
46-
println!("Configuration loaded and merged from: {:?}", config_path);
47+
debug!("Configuration loaded and merged from: {:?}", config_path);
4748
config
4849
},
4950
Err(e) => {
@@ -90,7 +91,7 @@ pub fn load_config() -> AppConfig {
9091
},
9192
};
9293

93-
println!("config_path: {:?}", config_path);
94+
log::debug!("config_path: {:?}", config_path);
9495

9596
config_path.push("pipe-gpt");
9697
config_path.push("config.yaml");

0 commit comments

Comments
 (0)