mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Favour individual logs over one in main
This commit is contained in:
parent
2041f367c6
commit
d0db6cba10
@ -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…
Reference in New Issue
Block a user