From 20c00066000078bd623b5c29f3cab8969748506f Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Wed, 2 Aug 2023 20:55:01 +0300 Subject: [PATCH] logging in LmdbServerStorage.open --- p2p-broker/src/server_storage.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p2p-broker/src/server_storage.rs b/p2p-broker/src/server_storage.rs index 721a332..635f562 100644 --- a/p2p-broker/src/server_storage.rs +++ b/p2p-broker/src/server_storage.rs @@ -42,6 +42,7 @@ impl LmdbServerStorage { let mut wallet_path = path.clone(); wallet_path.push("wallet"); std::fs::create_dir_all(wallet_path.clone()).unwrap(); + log_debug!("opening wallet DB"); //TODO redo the whole key passing mechanism in RKV so it uses zeroize all the way let wallet_storage = LmdbKCVStore::open(&wallet_path, master_key.slice().clone())?; let wallet = Wallet::open(&wallet_storage); @@ -79,12 +80,13 @@ impl LmdbServerStorage { } accounts_key = wallet.get_or_create_accounts_key()?; } + log_debug!("opening accounts DB"); std::fs::create_dir_all(accounts_path.clone()).unwrap(); //TODO redo the whole key passing mechanism in RKV so it uses zeroize all the way let accounts_storage = LmdbKCVStore::open(&accounts_path, accounts_key.slice().clone())?; // create/open the PEERS storage - + log_debug!("opening peers DB"); let peers_key = wallet.get_or_create_peers_key()?; let mut peers_path = path.clone(); peers_path.push("peers");