From 5545edcca7d8d67ef156c924351fd9cb912c160b Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 28 Sep 2021 01:57:16 +0300 Subject: Modified the module to use BACKEND_URI --- src/database/file/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/database/file/mod.rs') diff --git a/src/database/file/mod.rs b/src/database/file/mod.rs index acbb44b..f58317e 100644 --- a/src/database/file/mod.rs +++ b/src/database/file/mod.rs @@ -483,8 +483,10 @@ impl Storage for FileStorage { .create(true) .open(&path).await?; let mut lock = get_lockable_file(file).await; + log::debug!("Created a lock. Locking for writing..."); let mut guard = lock.write()?; + log::debug!("Locked. Writing."); let mut content = String::new(); guard.read_to_string(&mut content).await?; let mut settings: HashMap = if content.len() == 0 { -- cgit 1.4.1