1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Add log statement for blk*.dat globbing

This commit is contained in:
Roman Zeyde 2018-07-16 09:38:45 +03:00
parent 4f8d83f2d0
commit de02d8b987
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -227,6 +227,7 @@ impl Daemon {
let mut path = self.daemon_dir.clone();
path.push("blocks");
path.push("blk*.dat");
info!("listing block files at {:?}", path);
let mut paths: Vec<PathBuf> = glob::glob(path.to_str().unwrap())
.chain_err(|| "failed to list blk*.dat files")?
.map(|res| res.unwrap())