Skip to content

Commit 8927921

Browse files
authored
Merge pull request #68 from naglis/improve-test-daemon-logging
Improve test daemon logging
2 parents dcdfb7a + c6c89d9 commit 8927921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/helpers/daemon.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ impl MpdConfig {
3535
format!(
3636
r#"
3737
db_file "{db_file}"
38-
log_file "/dev/null"
3938
music_directory "{music_directory}"
4039
playlist_directory "{playlist_directory}"
4140
sticker_file "{sticker_file}"
@@ -76,8 +75,7 @@ impl Drop for Daemon {
7675
if let Some(ref mut stderr) = self.process.stderr {
7776
let mut output = String::new();
7877
stderr.read_to_string(&mut output).expect("Could not collect output from mpd.");
79-
println! {"Output from mpd:"}
80-
println! {"{}", output};
78+
println!("Output from mpd:\n{output}");
8179
}
8280
}
8381
}
@@ -101,6 +99,8 @@ impl Daemon {
10199

102100
let process = Command::new("mpd")
103101
.arg("--no-daemon")
102+
.arg("--verbose")
103+
.arg("--stderr")
104104
.arg(&config.config_path)
105105
.stdin(Stdio::null())
106106
.stdout(Stdio::null())

0 commit comments

Comments
 (0)