Skip to content

Commit

Permalink
runtime: suppress eprint message with log feature gate
Browse files Browse the repository at this point in the history
Closes #99
  • Loading branch information
dr-orlovsky committed Feb 26, 2024
1 parent 60c3d1f commit 176ec3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ where

let stock = Stock::load(&stock_path).or_else(|err| {
if matches!(err, DeserializeError::Decode(DecodeError::Io(ref err)) if err.kind() == ErrorKind::NotFound) {
#[cfg(feature = "log")]
eprint!("stock file is absent, creating a new one ... ");
let stock = Stock::default();
return Ok(stock)
Expand Down

0 comments on commit 176ec3a

Please sign in to comment.