diff options
author | Martin Ritchie <ritchiem@apache.org> | 2009-08-13 11:58:38 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2009-08-13 11:58:38 +0000 |
commit | c3297daebcf713f7091c7195b8150a34450e61d1 (patch) | |
tree | 4c5e0e31dd39305a443c8b261c92760c19a4ea20 | |
parent | d9fdbf42b491720048dc5cf5ff96d549cd7001ae (diff) | |
download | qpid-python-c3297daebcf713f7091c7195b8150a34450e61d1.tar.gz |
QPID-2002: BLT should not be monitoring the qpid.log file it needs to monitor standard out to validate that the correct BRK-1007 log4j configuration messages is provided. So reverted change to monitor qpid.log and refined comment
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@803851 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java index 5a28f18e80..4f50aba61d 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java @@ -149,24 +149,23 @@ public class BrokerLoggingTest extends AbstractTestLogging { String TESTID = "BRK-1007"; -// _monitor = new LogMonitor(new File(System.getProperty("QPID_WORK") + "/log/qpid.log")); - //Remove test Log4j config from the commandline _broker = _broker.substring(0, _broker.indexOf("-l")); - // As a result we will pick up the broker default and will right + // As a result of removing the test log4j config + // we will pick up the broker default and will write // data to the standard qpid.log file. Which means that the start - // broker process will not be monitoring the right file for startup. + // broker process will not be monitoring the right file for startup + // messages. Therefore: - // Set the broker commit ready string to check for the _log4j default + // Set the broker.ready string to check for the _log4j default that + // is still present on standard out. System.setProperty(BROKER_READY, "Qpid Broker Ready"); startBroker(); - // Now we can create the monitor on the qpid.log that is defined in - // the default log4j configuration - _monitor = new LogMonitor(new File(System.getProperty("QPID_WORK") + - "/log/qpid.log")); + // Now we can create the monitor as _outputFile will now be defined + _monitor = new LogMonitor(_outputFile); // Ensure broker has fully started up. getConnection(); |