Fix erroneous print statement to use logger

This commit is contained in:
Neshura 2024-05-06 20:55:30 +02:00
parent c8d7053b87
commit d50bf01db6
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -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);
}
}