Merge pull request 'Use Logging Crate To Avoid STDOUT Spam' (#5) from 03/logging into main
Reviewed-on: #5
This commit is contained in:
commit
343e43a762
4 changed files with 22 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
|||
use std::io::Write;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[cfg(feature = "log")]
|
||||
use log::debug;
|
||||
|
||||
#[derive(Debug, PartialEq, serde::Deserialize)]
|
||||
/// These are the states an issue can be in.
|
||||
pub enum State {
|
||||
|
|
@ -83,7 +86,8 @@ impl Issue {
|
|||
dependencies = Some(deps);
|
||||
}
|
||||
} else {
|
||||
println!("ignoring unknown file in issue directory: {:?}", file_name);
|
||||
#[cfg(feature = "log")]
|
||||
debug!("ignoring unknown file in issue directory: {:?}", file_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue