Refine logging
This commit is contained in:
parent
1c95bfd16a
commit
346bd69ff1
|
@ -111,7 +111,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
|
||||||
prefs.put("dialog.select.h", Integer.toString(selectDialog.getHeight()));
|
prefs.put("dialog.select.h", Integer.toString(selectDialog.getHeight()));
|
||||||
|
|
||||||
if (selectDialog.getSelectedAction() == null) {
|
if (selectDialog.getSelectedAction() == null) {
|
||||||
throw new CancellationException("Cancelled by user");
|
throw new CancellationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// remember if we should auto-repeat the chosen action in the future
|
// remember if we should auto-repeat the chosen action in the future
|
||||||
|
|
|
@ -427,7 +427,7 @@ class MovieHashMatcher implements AutoCompleteMatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selectDialog.getSelectedAction() == null) {
|
if (selectDialog.getSelectedAction() == null) {
|
||||||
throw new CancellationException("Cancelled by user");
|
throw new CancellationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// selected value or null if the dialog was canceled by the user
|
// selected value or null if the dialog was canceled by the user
|
||||||
|
|
|
@ -888,9 +888,7 @@ public class RenamePanel extends JComponent {
|
||||||
// add remaining file entries
|
// add remaining file entries
|
||||||
renameModel.files().addAll(remainingFiles);
|
renameModel.files().addAll(remainingFiles);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (findCause(e, CancellationException.class) != null) {
|
if (findCause(e, CancellationException.class) == null) {
|
||||||
debug.log(Level.WARNING, getRootCause(e).toString());
|
|
||||||
} else {
|
|
||||||
log.log(Level.WARNING, String.format("%s: %s", getRootCause(e).getClass().getSimpleName(), getRootCauseMessage(e)), e);
|
log.log(Level.WARNING, String.format("%s: %s", getRootCause(e).getClass().getSimpleName(), getRootCauseMessage(e)), e);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue