generated from PlexSheep/baserepo
add log to hedu
This commit is contained in:
parent
0515e221f9
commit
39a21d64e9
|
@ -17,3 +17,4 @@ categories.workspace = true
|
|||
[dependencies]
|
||||
anyhow = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
libpt-log = {path = "../libpt-log" }
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
use anyhow::{bail, Result};
|
||||
use std::io::{prelude::*, BufReader};
|
||||
use libpt_log::error;
|
||||
|
||||
const BYTES_PER_LINE: usize = 16;
|
||||
const LINE_SEP_HORIZ: char = '─';
|
||||
|
@ -80,6 +81,7 @@ where
|
|||
match data.read(&mut buf) {
|
||||
Ok(len) => Ok(len),
|
||||
Err(err) => {
|
||||
error!("error while reading data: {err}");
|
||||
bail!(err)
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue