Commit bd3e7f71 authored by Tobias Wich's avatar Tobias Wich
Browse files

Add log statements indicating cancellation of the process

parent fea8d910
......@@ -234,6 +234,7 @@ public class TCTokenRequest {
if (usableCards == null) {
// user aborted the card insertion dialog
LOG.info("Waiting for cards has not returned a result, cancelling process.");
throw new UserCancellationException(null, LANG.translationForKey(CARD_INSERTION_ABORT));
}
......
......@@ -41,6 +41,8 @@ import org.openecard.gui.definition.Text;
import org.openecard.gui.definition.UserConsentDescription;
import org.openecard.gui.executor.ExecutionEngine;
import org.openecard.gui.executor.StepAction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
......@@ -52,6 +54,8 @@ import org.openecard.gui.executor.StepAction;
*/
public class InsertCardDialog {
private static final Logger LOG = LoggerFactory.getLogger(InsertCardDialog.class);
private static final String STEP_ID = "insert-card";
private final I18n lang = I18n.getTranslation("tctoken");
......@@ -97,6 +101,7 @@ public class InsertCardDialog {
ResultStatus status = exec.process();
if (status == ResultStatus.CANCEL) {
LOG.info("Waiting for cards dialog has been cancelled.");
return null;
}
evDispatcher.del(insertCardAction);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment