Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 25c9c3a

Browse files
author
Tobin C. Harding
committed
seed: Move log message to after file read completes
1 parent 04c2215 commit 25c9c3a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cnd/src/seed.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,11 @@ impl Seed {
5252
/// Construct a seed from base64 data read in from pem file.
5353
pub fn from_file<D: AsRef<OsStr>>(seed_file: D) -> Result<Seed, Error> {
5454
let file = Path::new(&seed_file);
55-
log::info!(
56-
"Found seed file, reading from {}",
57-
&file.to_path_buf().display()
58-
);
59-
6055
let contents = fs::read_to_string(file)?;
6156
let pem = pem::parse(contents)?;
6257

58+
log::info!("Read in seed from file: {}", &file.to_path_buf().display());
59+
6360
Seed::from_pem(pem)
6461
}
6562

0 commit comments

Comments
 (0)