Fix erroneous print statement to use logger
This commit is contained in:
parent
c8d7053b87
commit
d50bf01db6
1 changed files with 10 additions and 1 deletions
|
@ -21,6 +21,15 @@ macro_rules! error {
|
|||
};
|
||||
}
|
||||
|
||||
macro_rules! info {
|
||||
($msg:tt) => {
|
||||
match connected_to_journal() {
|
||||
true => log::info!("[INFO] {}", $msg),
|
||||
false => println!("[INFO] {}", $msg),
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static PAST_DAYS_ELIGIBLE: u8 = 4;
|
||||
|
||||
macro_rules! api_url {
|
||||
|
@ -328,7 +337,7 @@ impl Fetcher for JFetcherOptions {
|
|||
match part_number {
|
||||
Some(number) => new_part_info = Part(number),
|
||||
None => {
|
||||
println!("No Part found, assuming 1");
|
||||
info!("No Part found, assuming 1");
|
||||
new_part_info = Part(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue