summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-10-08 15:41:46 +0200
committerMinijackson <minijackson@riseup.net>2018-10-08 15:41:46 +0200
commitd35f0c9ee105f8c789827d6f5c740154f7b9b1bc (patch)
treef357c25cabbeeb455863a502a35e1f1d79d4b16e /src/utils.rs
parent9c66dd87be5cba1548b8a47e45fab8f8b8590b24 (diff)
downloadset_eq-d35f0c9ee105f8c789827d6f5c740154f7b9b1bc.tar.gz
set_eq-d35f0c9ee105f8c789827d6f5c740154f7b9b1bc.zip
Use features to separate pa_eq and pa_effects + slightly better logging
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.rs b/src/utils.rs
index d75971a..26facc4 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -26,7 +26,7 @@ pub fn read_filearg_to_str(file: &str) -> Result<String, Error> {
26 26
27 let mut buffer = String::new(); 27 let mut buffer = String::new();
28 if file == "-" { 28 if file == "-" {
29 info!("Reading file from the command line"); 29 debug!("Reading file from the command line");
30 let stdin = io::stdin(); 30 let stdin = io::stdin();
31 let mut handle = stdin.lock(); 31 let mut handle = stdin.lock();
32 handle.read_to_string(&mut buffer)?; 32 handle.read_to_string(&mut buffer)?;
@@ -38,7 +38,7 @@ pub fn read_filearg_to_str(file: &str) -> Result<String, Error> {
38} 38}
39 39
40pub fn read_filter_from_arg(file: &str) -> Result<Filter, Error> { 40pub fn read_filter_from_arg(file: &str) -> Result<Filter, Error> {
41 debug!("Reading filter from '{}' in the EqualizerAPO format", file); 41 info!("Reading filter from '{}' in the EqualizerAPO format", file);
42 let content = read_filearg_to_str(file)?; 42 let content = read_filearg_to_str(file)?;
43 parse_filter(&content) 43 parse_filter(&content)
44} 44}