[or-cvs] r11378: suppress exceptions that occur after shutting down nodes (puppetor/trunk/src/de/uniba/wiai/lspi/puppetor/impl)
kloesing at seul.org
kloesing at seul.org
Wed Sep 5 14:26:48 UTC 2007
Author: kloesing
Date: 2007-09-05 10:26:48 -0400 (Wed, 05 Sep 2007)
New Revision: 11378
Modified:
puppetor/trunk/src/de/uniba/wiai/lspi/puppetor/impl/ProxyNodeImpl.java
Log:
suppress exceptions that occur after shutting down nodes
Modified: puppetor/trunk/src/de/uniba/wiai/lspi/puppetor/impl/ProxyNodeImpl.java
===================================================================
--- puppetor/trunk/src/de/uniba/wiai/lspi/puppetor/impl/ProxyNodeImpl.java 2007-09-05 00:31:07 UTC (rev 11377)
+++ puppetor/trunk/src/de/uniba/wiai/lspi/puppetor/impl/ProxyNodeImpl.java 2007-09-05 14:26:48 UTC (rev 11378)
@@ -592,10 +592,13 @@
}
} catch (IOException e) {
- // don't throw this exception, nobody will catch it!
- String reason = "IOException when reading output from Tor "
- + "process " + nodeName + "!";
- logger.log(Level.WARNING, reason, e);
+ // only print out a warning for this exception if this node
+ // is running; otherwise, silently ignore it...
+ if (nodeState == NodeState.RUNNING) {
+ String reason = "IOException when reading output from Tor "
+ + "process " + nodeName + "!";
+ logger.log(Level.WARNING, reason, e);
+ }
}
// log exiting
More information about the tor-commits
mailing list