diff --git a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java index 51d8485..efb8a2a 100644 --- a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java +++ b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java @@ -3252,7 +3252,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener { } File archiveFile = new File(archiveDir, name + ".abz"); - System.err.println("Archiving to " + archiveFile.getAbsolutePath()); + Debug.d("Archiving to", archiveFile.getAbsolutePath()); if (archiveFile.exists()) { archiveFile.delete(); } @@ -3674,7 +3674,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener { } else if (type.equals("highshelf")) { bq.setType(Biquad.Highshelf); } else { - System.err.println("Bad Biquad type: " + type); + Debug.d("Bad Biquad type:", type); return null; } @@ -3969,7 +3969,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener { Debug.trace(); try { if (selectedSentence == null) { - System.err.println("Selected sentence is NULL in split. That CANNOT happen!"); + Debug.d("Selected sentence is NULL in split. That CANNOT happen!"); return; } Chapter c = (Chapter)selectedSentence.getParent(); @@ -4027,7 +4027,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener { public void setEffectsEnabled(boolean b) { Debug.trace(); effectsEnabled = b; - System.err.println("Effects Enabled: " + b); + Debug.d("Effects Enabled:", b); } public void setBookNotes(String text) { diff --git a/src/uk/co/majenko/audiobookrecorder/BookInfoPanel.java b/src/uk/co/majenko/audiobookrecorder/BookInfoPanel.java index d24a9c2..9f1cca7 100644 --- a/src/uk/co/majenko/audiobookrecorder/BookInfoPanel.java +++ b/src/uk/co/majenko/audiobookrecorder/BookInfoPanel.java @@ -83,7 +83,6 @@ public class BookInfoPanel extends JPanel { Pattern p = Pattern.compile("\\/titleview\\/([A-Z0-9]{14})"); Matcher m = p.matcher(acx.getText()); if (m.find()) { - System.err.println(m); return m.group(1); } return acx.getText(); diff --git a/src/uk/co/majenko/audiobookrecorder/OpenBookPanel.java b/src/uk/co/majenko/audiobookrecorder/OpenBookPanel.java index 822bd11..7c82349 100644 --- a/src/uk/co/majenko/audiobookrecorder/OpenBookPanel.java +++ b/src/uk/co/majenko/audiobookrecorder/OpenBookPanel.java @@ -121,7 +121,7 @@ public class OpenBookPanel extends JPanel { c = c.getParent(); } if (c == null) { - System.err.println("Could not get option pane!"); + Debug.d("Could not get option pane!"); } else { JOptionPane op = (JOptionPane)c; op.setValue(JOptionPane.OK_OPTION); diff --git a/src/uk/co/majenko/audiobookrecorder/Options.java b/src/uk/co/majenko/audiobookrecorder/Options.java index 7968cc2..bf8c60a 100644 --- a/src/uk/co/majenko/audiobookrecorder/Options.java +++ b/src/uk/co/majenko/audiobookrecorder/Options.java @@ -722,7 +722,7 @@ public class Options extends JDialog { } else if (value instanceof Boolean) { set(key, (Boolean)value); } else { - System.err.println("Bad type for key " + key); + Debug.d("Bad type for key", key); } } diff --git a/src/uk/co/majenko/audiobookrecorder/Utils.java b/src/uk/co/majenko/audiobookrecorder/Utils.java index 3723de5..7ce4e0d 100644 --- a/src/uk/co/majenko/audiobookrecorder/Utils.java +++ b/src/uk/co/majenko/audiobookrecorder/Utils.java @@ -70,7 +70,7 @@ public class Utils { long t = System.currentTimeMillis(); long d = t - millis; millis = t; - System.err.println(String.format("%10d - %10s : %8d | %8d | %8d", d, tag, + Debug.d(String.format("%10d - %10s : %8d | %8d | %8d", d, tag, Runtime.getRuntime().totalMemory(), Runtime.getRuntime().maxMemory(), Runtime.getRuntime().freeMemory() diff --git a/src/uk/co/majenko/audiobookrecorder/VersionChecker.java b/src/uk/co/majenko/audiobookrecorder/VersionChecker.java index 05b58e1..4fddeec 100644 --- a/src/uk/co/majenko/audiobookrecorder/VersionChecker.java +++ b/src/uk/co/majenko/audiobookrecorder/VersionChecker.java @@ -55,10 +55,6 @@ public class VersionChecker implements Runnable { if (Utils.s2i(installedVersion) >= Utils.s2i(availableVersion)) return; - System.err.println("Version installed: " + installed); - System.err.println("Version available: " + available); - System.err.println("URL: " + website); - JButton upgrade = new JButton("A new version is available."); upgrade.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) {