Skip to content

Commit

Permalink
Replaced println with logging (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismet55555 authored Aug 11, 2023
1 parent da301d3 commit 21a384e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use color_eyre::eyre::Result;
use log::debug;
use std::io::{self, Read};

pub mod bieye;
Expand All @@ -14,7 +15,7 @@ fn main() -> Result<()> {

// Get usert options flag input
let _args = CliArgs::parse();
println!("{:?}", _args);
debug!("[CLI ARGS] {:?}", _args);

let mut input_text = String::new();

Expand All @@ -26,7 +27,7 @@ fn main() -> Result<()> {
// Passed via stdin pipe
io::stdin().read_to_string(&mut input_text)?;
if input_text.is_empty() {
println!("No input from stdin");
println!("ERROR: No input received via stdin.");
return Ok(());
}
}
Expand Down

0 comments on commit 21a384e

Please sign in to comment.