chore: warn when reinitializing

feat/type-attributes
Tomáš Mládek 2023-01-24 23:50:56 +01:00
parent c690992f93
commit 4c1231a4ba
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ use std::fs;
use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};
use std::time::Duration;
use tracing::{debug, error, trace};
use tracing::{debug, error, trace, warn};
#[derive(Debug)]
pub struct ConnectionOptions {
@ -111,7 +111,7 @@ impl UpEndDatabase {
let upend_path = dirpath.as_ref().join(UPEND_SUBDIR);
if reinitialize {
debug!("Reinitializing - removing previous database...");
warn!("Reinitializing - removing previous database...");
let _ = fs::remove_dir_all(&upend_path);
}
let new = !upend_path.exists();