Cleanup of debugging
This commit is contained in:
@@ -3252,7 +3252,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
File archiveFile = new File(archiveDir, name + ".abz");
|
File archiveFile = new File(archiveDir, name + ".abz");
|
||||||
System.err.println("Archiving to " + archiveFile.getAbsolutePath());
|
Debug.d("Archiving to", archiveFile.getAbsolutePath());
|
||||||
if (archiveFile.exists()) {
|
if (archiveFile.exists()) {
|
||||||
archiveFile.delete();
|
archiveFile.delete();
|
||||||
}
|
}
|
||||||
@@ -3674,7 +3674,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
} else if (type.equals("highshelf")) {
|
} else if (type.equals("highshelf")) {
|
||||||
bq.setType(Biquad.Highshelf);
|
bq.setType(Biquad.Highshelf);
|
||||||
} else {
|
} else {
|
||||||
System.err.println("Bad Biquad type: " + type);
|
Debug.d("Bad Biquad type:", type);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3969,7 +3969,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
Debug.trace();
|
Debug.trace();
|
||||||
try {
|
try {
|
||||||
if (selectedSentence == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
Chapter c = (Chapter)selectedSentence.getParent();
|
Chapter c = (Chapter)selectedSentence.getParent();
|
||||||
@@ -4027,7 +4027,7 @@ public class AudiobookRecorder extends JFrame implements DocumentListener {
|
|||||||
public void setEffectsEnabled(boolean b) {
|
public void setEffectsEnabled(boolean b) {
|
||||||
Debug.trace();
|
Debug.trace();
|
||||||
effectsEnabled = b;
|
effectsEnabled = b;
|
||||||
System.err.println("Effects Enabled: " + b);
|
Debug.d("Effects Enabled:", b);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBookNotes(String text) {
|
public void setBookNotes(String text) {
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ public class BookInfoPanel extends JPanel {
|
|||||||
Pattern p = Pattern.compile("\\/titleview\\/([A-Z0-9]{14})");
|
Pattern p = Pattern.compile("\\/titleview\\/([A-Z0-9]{14})");
|
||||||
Matcher m = p.matcher(acx.getText());
|
Matcher m = p.matcher(acx.getText());
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
System.err.println(m);
|
|
||||||
return m.group(1);
|
return m.group(1);
|
||||||
}
|
}
|
||||||
return acx.getText();
|
return acx.getText();
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ public class OpenBookPanel extends JPanel {
|
|||||||
c = c.getParent();
|
c = c.getParent();
|
||||||
}
|
}
|
||||||
if (c == null) {
|
if (c == null) {
|
||||||
System.err.println("Could not get option pane!");
|
Debug.d("Could not get option pane!");
|
||||||
} else {
|
} else {
|
||||||
JOptionPane op = (JOptionPane)c;
|
JOptionPane op = (JOptionPane)c;
|
||||||
op.setValue(JOptionPane.OK_OPTION);
|
op.setValue(JOptionPane.OK_OPTION);
|
||||||
|
|||||||
@@ -722,7 +722,7 @@ public class Options extends JDialog {
|
|||||||
} else if (value instanceof Boolean) {
|
} else if (value instanceof Boolean) {
|
||||||
set(key, (Boolean)value);
|
set(key, (Boolean)value);
|
||||||
} else {
|
} else {
|
||||||
System.err.println("Bad type for key " + key);
|
Debug.d("Bad type for key", key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public class Utils {
|
|||||||
long t = System.currentTimeMillis();
|
long t = System.currentTimeMillis();
|
||||||
long d = t - millis;
|
long d = t - millis;
|
||||||
millis = t;
|
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().totalMemory(),
|
||||||
Runtime.getRuntime().maxMemory(),
|
Runtime.getRuntime().maxMemory(),
|
||||||
Runtime.getRuntime().freeMemory()
|
Runtime.getRuntime().freeMemory()
|
||||||
|
|||||||
@@ -55,10 +55,6 @@ public class VersionChecker implements Runnable {
|
|||||||
|
|
||||||
if (Utils.s2i(installedVersion) >= Utils.s2i(availableVersion)) return;
|
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.");
|
JButton upgrade = new JButton("A new version is available.");
|
||||||
upgrade.addActionListener(new ActionListener() {
|
upgrade.addActionListener(new ActionListener() {
|
||||||
public void actionPerformed(ActionEvent evt) {
|
public void actionPerformed(ActionEvent evt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user