Skip to content

Commit

Permalink
Merge pull request #68 from naglis/improve-test-daemon-logging
Browse files Browse the repository at this point in the history
Improve test daemon logging
  • Loading branch information
kstep authored Nov 30, 2024
2 parents dcdfb7a + c6c89d9 commit 8927921
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/helpers/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ impl MpdConfig {
format!(
r#"
db_file "{db_file}"
log_file "/dev/null"
music_directory "{music_directory}"
playlist_directory "{playlist_directory}"
sticker_file "{sticker_file}"
Expand Down Expand Up @@ -76,8 +75,7 @@ impl Drop for Daemon {
if let Some(ref mut stderr) = self.process.stderr {
let mut output = String::new();
stderr.read_to_string(&mut output).expect("Could not collect output from mpd.");
println! {"Output from mpd:"}
println! {"{}", output};
println!("Output from mpd:\n{output}");
}
}
}
Expand All @@ -101,6 +99,8 @@ impl Daemon {

let process = Command::new("mpd")
.arg("--no-daemon")
.arg("--verbose")
.arg("--stderr")
.arg(&config.config_path)
.stdin(Stdio::null())
.stdout(Stdio::null())
Expand Down

0 comments on commit 8927921

Please sign in to comment.