testing: Limit the backends we use for SLF4J

Using KazooTestCase becomes really chatty if you happen to have other
backends than just log4j installed for slf4j. Limiting only to
slf4j-log4j-* ensures that the properties file we provide when
starting zookeeper is enough to turn off the chatter.
This commit is contained in:
Jyrki Pulliainen
2013-08-28 15:58:56 +02:00
parent 5be2d7c4a2
commit 9ca22ac278

View File

@@ -175,7 +175,10 @@ log4j.appender.ROLLINGFILE.File=""" + to_java_compatible_path(
"log4j-*.jar")))
jars.extend(glob(os.path.join(
self.install_path,
"slf4j-*.jar")))
"slf4j-api-*.jar")))
jars.extend(glob(os.path.join(
self.install_path,
"slf4j-log4j-*.jar")))
else:
# Development build (plain `ant`)
jars = glob((os.path.join(