diff options
author | Vika <vika@fireburn.ru> | 2021-09-28 01:57:16 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-09-28 01:57:16 +0300 |
commit | 5545edcca7d8d67ef156c924351fd9cb912c160b (patch) | |
tree | 8b00b6df6a03530b9898913ede6636284d3f3dcd /src/database/file/mod.rs | |
parent | a8a38e54cd6d7c771c1ceecd4d8fcd86c33d3f1e (diff) | |
download | kittybox-5545edcca7d8d67ef156c924351fd9cb912c160b.tar.zst |
Modified the module to use BACKEND_URI
Diffstat (limited to 'src/database/file/mod.rs')
-rw-r--r-- | src/database/file/mod.rs | 2 |
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 { |