Comment out debug logs
This commit is contained in:
parent
f55be0fe51
commit
b2524758e8
1 changed files with 8 additions and 8 deletions
16
src/main.rs
16
src/main.rs
|
@ -241,16 +241,16 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
|
||||||
read_vec = read_vec.split_off(current_binary_size + 1);
|
read_vec = read_vec.split_off(current_binary_size + 1);
|
||||||
count = read_vec.len();
|
count = read_vec.len();
|
||||||
current_binary_size = 0;
|
current_binary_size = 0;
|
||||||
println!(
|
//println!(
|
||||||
"art_data len is {} after fully reading",
|
// "art_data len is {} after fully reading",
|
||||||
lock.art_data.len()
|
// lock.art_data.len()
|
||||||
);
|
//);
|
||||||
// TODO Debug
|
// TODO Debug
|
||||||
//let write_file_result = debug_write_albumart_to_file(&lock.art_data);
|
//let write_file_result = debug_write_albumart_to_file(&lock.art_data);
|
||||||
} else {
|
} else {
|
||||||
lock.art_data.extend_from_slice(&read_vec[0..count]);
|
lock.art_data.extend_from_slice(&read_vec[0..count]);
|
||||||
current_binary_size -= count;
|
current_binary_size -= count;
|
||||||
println!("art_data len is {}", lock.art_data.len());
|
//println!("art_data len is {}", lock.art_data.len());
|
||||||
continue 'main;
|
continue 'main;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("Got response: {}", line);
|
//println!("Got response: {}", line);
|
||||||
if line.starts_with("OK") {
|
if line.starts_with("OK") {
|
||||||
break;
|
break;
|
||||||
} else if line.starts_with("file: ") {
|
} else if line.starts_with("file: ") {
|
||||||
|
@ -278,7 +278,7 @@ fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
|
||||||
lock.current_song = song_file;
|
lock.current_song = song_file;
|
||||||
lock.art_data.clear();
|
lock.art_data.clear();
|
||||||
lock.art_data_size = 0;
|
lock.art_data_size = 0;
|
||||||
println!("Got different song file, clearing art_data...");
|
//println!("Got different song file, clearing art_data...");
|
||||||
}
|
}
|
||||||
lock.dirty = true;
|
lock.dirty = true;
|
||||||
song_title_get_time = Instant::now();
|
song_title_get_time = Instant::now();
|
||||||
|
@ -590,7 +590,7 @@ async fn main() -> Result<(), String> {
|
||||||
.map_err(|_| String::from("Failed to get shared_data.thread_running in main"))?
|
.map_err(|_| String::from("Failed to get shared_data.thread_running in main"))?
|
||||||
.thread_running = false;
|
.thread_running = false;
|
||||||
|
|
||||||
println!("Waiting on thread...");
|
//println!("Waiting on thread...");
|
||||||
thread::sleep(Duration::from_millis(200));
|
thread::sleep(Duration::from_millis(200));
|
||||||
|
|
||||||
println!("Joining on thread...");
|
println!("Joining on thread...");
|
||||||
|
|
Loading…
Reference in a new issue