Skip to content

Commit cb00a3f

Browse files
author
jburnett
committed
Upgrade log to 0.4.21 & adapt warn macro
1 parent 2a9b29d commit cb00a3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ edition.workspace = true
1111

1212

1313
[dependencies]
14-
log = "0.4.20"
14+
log = "0.4.21"
1515
pest = "2.7.3"
1616
pretty_env_logger = "0.5.0"
1717
pta-ledger = { path = "../pta-ledger" }

cli/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate pta_ledger;
77
extern crate pta_parser;
88

99

10-
use log::{info, warn, as_error, error};
10+
use log::{info, warn, error};
1111

1212
// TODO: how to isolate pest so clients can just use lib (w/o requiring pest as here)
1313
use pta_ledger::ledger_builder::LedgerBuilder;
@@ -45,7 +45,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
4545
}
4646

4747
Err(e) => {
48-
warn!(err = as_error!(e); "failed to read file as string");
48+
warn!("failed to read file as string; {e}");
4949
return Err(Box::new(e));
5050
}
5151
}

0 commit comments

Comments
 (0)