about summary refs log tree commit diff
path: root/src/database
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-09-28 01:57:16 +0300
committerVika <vika@fireburn.ru>2021-09-28 01:57:16 +0300
commit5545edcca7d8d67ef156c924351fd9cb912c160b (patch)
tree8b00b6df6a03530b9898913ede6636284d3f3dcd /src/database
parenta8a38e54cd6d7c771c1ceecd4d8fcd86c33d3f1e (diff)
downloadkittybox-5545edcca7d8d67ef156c924351fd9cb912c160b.tar.zst
Modified the module to use BACKEND_URI
Diffstat (limited to 'src/database')
-rw-r--r--src/database/file/mod.rs2
1 files changed, 2 insertions, 0 deletions
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<String, String> = if content.len() == 0 {