pub fn verify(path: &Path) -> Result<ChainReport, LogError>Expand description
Walks the log and reports the first fault. Changes nothing.
Reads the file directly rather than through crate::FileLog::open,
because opening repairs a torn tail as a side effect and would make
this report describe a file it had already altered.
ยงErrors
LogError::Io if the file cannot be read. A damaged record is
reported in the ChainReport, not returned as an error: the
caller asked what is wrong with the log, and answering with a
failure would make the answer indistinguishable from not being able
to look.