Skip to content

Commit

Permalink
refactor: better log at the start of imex_inner()
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Dec 11, 2023
1 parent 018bdb6 commit c098a58
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/imex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,15 @@ async fn imex_inner(
path: &Path,
passphrase: Option<String>,
) -> 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.");
context.emit_event(EventType::ImexProgress(10));

Expand Down

0 comments on commit c098a58

Please sign in to comment.