removed debugging statement

This commit is contained in:
Djairo Hougee 2023-05-06 14:09:23 +02:00
parent f87356c859
commit 914d417a8d
2 changed files with 5 additions and 3 deletions

View File

@ -20,9 +20,12 @@ fn handle_signal(data: &Data, pf: &PlayerFinder) {
} }
} }
//todo: load different config giles depending on CLI argument
//so i can specify 3 files to use with my polybar config
fn main() { fn main() {
dotenvy::dotenv().expect("Failed to read .env file"); //dotenvy::dotenv().expect("Failed to read .env file");
std::env::set_var("RUST_LOG", "debug"); std::env::set_var("RUST_LOG", "error");
if let Err(e) = env_logger::init() { if let Err(e) = env_logger::init() {
panic!("{}", e); panic!("{}", e);
} }

View File

@ -12,7 +12,6 @@ fn cutoff(fields: &Vec<Field>, brk: char, strings: &mut HashMap<String, String>)
let mut b = a.unwrap().clone(); let mut b = a.unwrap().clone();
b.truncate(field.num_chars as usize); b.truncate(field.num_chars as usize);
b.push(brk); b.push(brk);
println!("{}", b);
strings.insert(field.field.clone(), b); strings.insert(field.field.clone(), b);
} }
} }