From: <ju...@us...> - 2007-07-04 18:34:29
|
Revision: 4556 http://svn.sourceforge.net/smartfrog/?rev=4556&view=rev Author: julgui Date: 2007-07-04 11:34:27 -0700 (Wed, 04 Jul 2007) Log Message: ----------- Fix: problem with stacktrace logging. Modified Paths: -------------- trunk/core/smartfrog/src/org/smartfrog/sfcore/logging/LogImpl.java Modified: trunk/core/smartfrog/src/org/smartfrog/sfcore/logging/LogImpl.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/sfcore/logging/LogImpl.java 2007-07-04 18:30:50 UTC (rev 4555) +++ trunk/core/smartfrog/src/org/smartfrog/sfcore/logging/LogImpl.java 2007-07-04 18:34:27 UTC (rev 4556) @@ -291,7 +291,8 @@ final Writer result = new StringWriter(); PrintWriter printWriter = new PrintWriter(result); thr.printStackTrace(printWriter); - System.err.print("[FATAL] Stack trace: "+printWriter.toString()); + printWriter.close(); + System.err.print("[FATAL] Stack trace: "+result.toString()); } } if ((localLog!=null)&&(localLog.isTraceEnabled())) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |