mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 03:46:32 +03:00
refactor: better log at the start of imex_inner()
This commit is contained in:
10
src/imex.rs
10
src/imex.rs
@@ -375,7 +375,15 @@ async fn imex_inner(
|
|||||||
path: &Path,
|
path: &Path,
|
||||||
passphrase: Option<String>,
|
passphrase: Option<String>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
info!(context, "Import/export dir: {}", path.display());
|
info!(
|
||||||
|
context,
|
||||||
|
"{} path: {}",
|
||||||
|
match what {
|
||||||
|
ImexMode::ExportSelfKeys | ImexMode::ExportBackup => "Export",
|
||||||
|
ImexMode::ImportSelfKeys | ImexMode::ImportBackup => "Import",
|
||||||
|
},
|
||||||
|
path.display()
|
||||||
|
);
|
||||||
ensure!(context.sql.is_open().await, "Database not opened.");
|
ensure!(context.sql.is_open().await, "Database not opened.");
|
||||||
context.emit_event(EventType::ImexProgress(10));
|
context.emit_event(EventType::ImexProgress(10));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user