Title: [1357] trunk/web/web-io/src/main/java/org/jbehave/web/io: Updated silent monitor to not print events with exceptions.
Revision
1357
Author
mauro
Date
2009-10-19 17:23:05 -0500 (Mon, 19 Oct 2009)

Log Message

Updated silent monitor to not print events with exceptions.

Modified Paths


Diff

Modified: trunk/web/web-io/src/main/java/org/jbehave/web/io/PrintStreamFileMonitor.java (1356 => 1357)

--- trunk/web/web-io/src/main/java/org/jbehave/web/io/PrintStreamFileMonitor.java	2009-10-19 22:15:06 UTC (rev 1356)
+++ trunk/web/web-io/src/main/java/org/jbehave/web/io/PrintStreamFileMonitor.java	2009-10-19 22:23:05 UTC (rev 1357)
@@ -19,12 +19,14 @@
 	}
 
 	protected void print(PrintStream output, String message) {
-		output.println(message);
+		print(output, message, null);
 	}
 
 	protected void print(PrintStream output, String message, Exception cause) {
 		output.println(message);
-		cause.printStackTrace(output);		
+		if ( cause != null ){
+			cause.printStackTrace(output);			
+		}
 	}
 
 	public void contentListed(String path, File directory,

Modified: trunk/web/web-io/src/main/java/org/jbehave/web/io/SilentFileMonitor.java (1356 => 1357)

--- trunk/web/web-io/src/main/java/org/jbehave/web/io/SilentFileMonitor.java	2009-10-19 22:15:06 UTC (rev 1356)
+++ trunk/web/web-io/src/main/java/org/jbehave/web/io/SilentFileMonitor.java	2009-10-19 22:23:05 UTC (rev 1357)
@@ -4,8 +4,8 @@
 
 public class SilentFileMonitor extends PrintStreamFileMonitor {
 
-	protected void print(PrintStream output, String message) {
+	protected void print(PrintStream output, String message, Exception cause) {
 		// print nothing
 	}
-
+	
 }


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to