chore: warn when reinitializing
parent
c690992f93
commit
4c1231a4ba
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue