* Logs: Don't be quite so noisy in the wrapper log if we

can't open the router log
This commit is contained in:
zzz
2010-01-21 14:18:31 +00:00
parent 3bf95e566c
commit 09d3dc8e90

View File

@ -126,7 +126,11 @@ class LogWriter implements Runnable {
private void writeRecord(String val) {
if (val == null) return;
if (_currentOut == null) rotateFile();
if (_currentOut == null) {
rotateFile();
if (_currentOut == null)
return; // hosed
}
try {
_currentOut.write(val);
@ -168,8 +172,7 @@ class LogWriter implements Runnable {
try {
_currentOut = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(f), "UTF-8"));
} catch (IOException ioe) {
System.err.println("Error rotating into [" + f.getAbsolutePath() + "]");
ioe.printStackTrace();
System.err.println("Error rotating into [" + f.getAbsolutePath() + "]" + ioe);
}
}