From dce3ce3734706666bcd346bb5a062a2544551b54 Mon Sep 17 00:00:00 2001 From: steviez Date: Fri, 5 Jan 2024 21:23:39 -0600 Subject: [PATCH] Adjust blockstore open logs to say blockstore instead of database (#34672) Additionally, make the log before/after the open more similar so it is more clear while skimming logs that they correspond to each other. --- ledger/src/blockstore.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index 323c7ac869..b2bb8ec77c 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -316,8 +316,8 @@ impl Blockstore { adjust_ulimit_nofile(options.enforce_ulimit_nofile)?; // Open the database - let mut measure = Measure::start("open"); - info!("Opening database at {:?}", blockstore_path); + let mut measure = Measure::start("blockstore open"); + info!("Opening blockstore at {:?}", blockstore_path); let db = Database::open(&blockstore_path, options)?; let meta_cf = db.column(); @@ -353,7 +353,7 @@ impl Blockstore { let max_root = AtomicU64::new(max_root); measure.stop(); - info!("{:?} {}", blockstore_path, measure); + info!("Opening blockstore done; {measure}"); let blockstore = Blockstore { ledger_path: ledger_path.to_path_buf(), db,