]> git.bitcoin.ninja Git - rust-lightning/commitdiff
check # write_to_file calls
authorValentine Wallace <vwallace@protonmail.com>
Wed, 17 Feb 2021 19:25:48 +0000 (14:25 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 17 Feb 2021 19:25:48 +0000 (14:25 -0500)
lightning-persister/src/util.rs

index ed3aa27e6101eb8ddd4d44fb06a1e233954073a7..d568af561ddb481749838a0485fbf9b7c475f21b 100644 (file)
@@ -39,9 +39,8 @@ fn path_to_windows_str<T: AsRef<OsStr>>(x: T) -> Vec<winapi::shared::ntdef::WCHA
 
 #[allow(bare_trait_objects)]
 pub(crate) fn write_to_file<D: DiskWriteable>(path: String, filename: String, data: &D) -> std::io::Result<()> {
-       println!("VMW: creating dir");
+       println!("VMW: in write_to_file, filename: {}", filename);
        fs::create_dir_all(path.clone())?;
-       println!("VMW: created dir");
 
        // Do a crazy dance with lots of fsync()s to be overly cautious here...
        // We never want to end up in a state where we've lost the old data, or end up using the