Skip to content

Commit b78ec24

Browse files
committed
debug logs
1 parent 36e90c5 commit b78ec24

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scalardb/src/scalardb/db/cluster.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@
254254
(defn- running-pods?
255255
"Check if nodes are running."
256256
[test prefix num]
257-
(info "DEBUG:" (-> test :nodes first (c/on (c/exec :kubectl :get :pods))))
257+
(try
258+
(info "DEBUG:" (-> test :nodes first (c/on (c/exec :kubectl :describe :pod "cassandra-scalardb-cluster-0"))))
259+
(info "DEBUG:" (-> test :nodes first (c/on (c/exec :kubectl :describe :pod "cassandra-scalardb-cluster-1"))))
260+
(info "DEBUG:" (-> test :nodes first (c/on (c/exec :kubectl :describe :pod "cassandra-scalardb-cluster-2"))))
261+
(catch Exception _ nil))
258262
(-> test
259263
:nodes
260264
first

0 commit comments

Comments
 (0)