From eb1bc0b768278245c0eb025591d61cf49c1ae844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 5 Nov 2018 01:11:21 +0200 Subject: [PATCH] Add more error logging to Galera checks The reason for the failure is now logged. --- maxscale-system-test/mariadb_nodes.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maxscale-system-test/mariadb_nodes.cpp b/maxscale-system-test/mariadb_nodes.cpp index a37725136..93202d18c 100644 --- a/maxscale-system-test/mariadb_nodes.cpp +++ b/maxscale-system-test/mariadb_nodes.cpp @@ -854,6 +854,15 @@ int Galera_nodes::check_galera() cout << "Expected cluster size: " << N << " Actual size: " << r[1] << endl; } } + else + { + cout << "Unexpected result size: " + << (r.empty() ? "Empty result" : std::to_string(r.size())) << endl; + } + } + else + { + cout << "Failed to connect to the cluster" << endl; } disconnect();