Favour individual logs over one in main

pull/275/head
Thomas Eizinger 3 years ago
parent 2041f367c6
commit d0db6cba10
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

@ -76,11 +76,6 @@ async fn main() -> Result<()> {
None => Config::testnet(),
};
debug!(
"Database and seed will be stored in {}",
config.data.dir.display()
);
let db = Database::open(config.data.dir.join("database").as_path())
.context("Could not open database")?;

@ -51,6 +51,8 @@ pub struct Database(sled::Db);
impl Database {
pub fn open(path: &Path) -> Result<Self> {
tracing::debug!("Opening database at {}", path.display());
let db =
sled::open(path).with_context(|| format!("Could not open the DB at {:?}", path))?;

@ -90,7 +90,7 @@ impl Seed {
let contents = fs::read_to_string(file)?;
let pem = pem::parse(contents)?;
tracing::trace!("Read in seed from {}", file.display());
tracing::debug!("Reading in seed from {}", file.display());
Self::from_pem(pem)
}

Loading…
Cancel
Save