qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonat...@apache.org
Subject svn commit: r965970 - /qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py
Date Tue, 20 Jul 2010 19:43:26 GMT
Author: jonathan
Date: Tue Jul 20 19:43:26 2010
New Revision: 965970

URL: http://svn.apache.org/viewvc?rev=965970&view=rev
Log:
Removed extraneous output in Java programs by setting log4j to WARN.

Modified:
    qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py

Modified: qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py?rev=965970&r1=965969&r2=965970&view=diff
==============================================================================
--- qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py (original)
+++ qpid/trunk/qpid/tests/src/py/qpid_tests/client/client-api-example-tests.py Tue Jul 20
19:43:26 2010
@@ -91,17 +91,6 @@ out, err  = popen.communicate()
 os.environ["CLASSPATH"] = java_examples_path + ":" + re.sub("\\n", ":", out)
 logging.debug("Java CLASSPATH = " + os.environ["CLASSPATH"])
 
-"""
-log4j.logger.org.apache.qpid=WARN, console
-log4j.additivity.org.apache.qpid=false
-
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.Threshold=all
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%t %d %p [%c{4}] %m%n
-"""
-
-
 ############################################################################################
 
 # Paths to programs
@@ -114,8 +103,8 @@ cpp_spout = cpp_examples_path + "spout" 
 # cpp_server = cpp_examples_path + "map_receiver"
 python_drain = python_examples_path + "drain" + " -b " + qpid_broker
 python_spout = python_examples_path + "spout" + " -b " + qpid_broker
-java_drain = "java " + "org.apache.qpid.example.Drain"
-java_spout = "java " + "org.apache.qpid.example.Spout"
+java_drain = "java " + "-Dlog4j.configuration=log4j.conf " + "org.apache.qpid.example.Drain"
+java_spout = "java " + "-Dlog4j.configuration=log4j.conf " + "org.apache.qpid.example.Spout"
 
 CPP = object()
 PYTHON = object()



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message