diff options
Diffstat (limited to 'java')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/util/LogMonitor.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/util/LogMonitor.java b/java/systests/src/main/java/org/apache/qpid/util/LogMonitor.java index 7a045fdb9a..df8dd0b85b 100644 --- a/java/systests/src/main/java/org/apache/qpid/util/LogMonitor.java +++ b/java/systests/src/main/java/org/apache/qpid/util/LogMonitor.java @@ -172,9 +172,7 @@ public class LogMonitor */ public void reset() throws FileNotFoundException, IOException { - OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(_logfile)); - writer.write("Log Monitor Reset\n"); - writer.close(); + new FileOutputStream(_logfile).getChannel().truncate(0); } /** @@ -183,7 +181,7 @@ public class LogMonitor * This is required to be called incase we added a new logger. * * If we don't call close then the new logger will continue to get log entries - * after our desired test has finished. + * after our desired test has finished. */ public void close() { |
