I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 09d3dc8e authored by zzz's avatar zzz
Browse files

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

      can't open the router log
parent 3bf95e56
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,11 @@ class LogWriter implements Runnable { ...@@ -126,7 +126,11 @@ class LogWriter implements Runnable {
private void writeRecord(String val) { private void writeRecord(String val) {
if (val == null) return; if (val == null) return;
if (_currentOut == null) rotateFile(); if (_currentOut == null) {
rotateFile();
if (_currentOut == null)
return; // hosed
}
try { try {
_currentOut.write(val); _currentOut.write(val);
...@@ -168,8 +172,7 @@ class LogWriter implements Runnable { ...@@ -168,8 +172,7 @@ class LogWriter implements Runnable {
try { try {
_currentOut = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(f), "UTF-8")); _currentOut = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(f), "UTF-8"));
} catch (IOException ioe) { } catch (IOException ioe) {
System.err.println("Error rotating into [" + f.getAbsolutePath() + "]"); System.err.println("Error rotating into [" + f.getAbsolutePath() + "]" + ioe);
ioe.printStackTrace();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment