change log level and reduce log lines for e2e tests

This commit is contained in:
Felix Kunde 2020-08-13 15:28:59 +02:00
parent 4feb301650
commit d19b88735f
2 changed files with 2 additions and 5 deletions

View File

@ -671,8 +671,6 @@ class EndToEndTestCase(unittest.TestCase):
# wait until cluster is deleted
time.sleep(120)
print('Operator log: {}'.format(k8s.get_operator_log()))
# check if everything has been deleted
self.assertEqual(0, k8s.count_pods_with_label(cluster_label))
self.assertEqual(0, k8s.count_services_with_label(cluster_label))
@ -830,7 +828,6 @@ class K8s:
name=pod_name,
namespace=namespace
)
print("Pod description {}".format(response))
time.sleep(self.RETRY_TIMEOUT_SEC)

View File

@ -429,9 +429,9 @@ func (c *Controller) queueClusterEvent(informerOldSpec, informerNewSpec *acidv1.
c.logger.WithField("cluster-name", clusterName).Warnf(
"please, recreate Postgresql resource %q and set annotations to delete properly", clusterName)
if currentManifest, marshalErr := json.Marshal(informerOldSpec); marshalErr != nil {
c.logger.WithField("cluster-name", clusterName).Debugf("could not marshal current manifest:\n%+v", informerOldSpec)
c.logger.WithField("cluster-name", clusterName).Warnf("could not marshal current manifest:\n%+v", informerOldSpec)
} else {
c.logger.WithField("cluster-name", clusterName).Debugf("%s\n", string(currentManifest))
c.logger.WithField("cluster-name", clusterName).Warnf("%s\n", string(currentManifest))
}
return
}