Disable zookeeper logger

Better
This commit is contained in:
alesapin 2021-03-19 21:53:09 +03:00
parent 0bf8979932
commit 3159b9dacf
2 changed files with 10 additions and 2 deletions

View File

@ -27,7 +27,9 @@
[clojure.java.io :as io]
[zookeeper.data :as data]
[zookeeper :as zk])
(:import (org.apache.zookeeper ZooKeeper KeeperException KeeperException$BadVersionException)))
(:import (org.apache.zookeeper ZooKeeper KeeperException KeeperException$BadVersionException)
(ch.qos.logback.classic Level)
(org.slf4j Logger LoggerFactory)))
(defn cluster-config
[test node config-template]
@ -175,6 +177,8 @@
"Handles command line arguments. Can either run a test, or a web server for
browsing results."
[& args]
(.setLevel
(LoggerFactory/getLogger "org.apache.zookeeper") Level/OFF)
(cli/run! (merge (cli/single-test-cmd {:test-fn nukeeper-test
:opt-spec cli-opts})
(cli/test-all-cmd {:tests-fn (partial all-tests nukeeper-test)

View File

@ -2,7 +2,9 @@
(:require [clojure.test :refer :all]
[jepsen.nukeeper.utils :refer :all]
[zookeeper :as zk]
[zookeeper.data :as data]))
[zookeeper.data :as data])
(:import (ch.qos.logback.classic Level)
(org.slf4j Logger LoggerFactory)))
(defn multicreate
[conn]
@ -14,6 +16,8 @@
(deftest a-test
(testing "nukeeper connection"
(.setLevel
(LoggerFactory/getLogger "org.apache.zookeeper") Level/OFF)
(let [conn (zk/connect "localhost:9181" :timeout-msec 5000)]
;(println (take 10 (zk-range)))
;(multidelete conn)