diff options
author | Konrad Djimeli <konraddjimeli@gmail.com> | 2018-04-26 08:40:17 +0100 |
---|---|---|
committer | Konrad Djimeli <konraddjimeli@gmail.com> | 2018-04-26 09:23:45 +0100 |
commit | 9f8e105025763e75273f430448518fea77a49d34 (patch) | |
tree | c0cfaaa2f5609a7394cd19faa08ac463441f2848 /functest_kubernetes/k8stest.py | |
parent | f351c301be1396e5dd578209c606a111afbc8758 (diff) |
Update logging to log Errors, when they occur
Enable logging of errors which can occur due to
incorrect configfile, wrong KUBE_MASTER_URL or
KUBE_MASTER_IP etc.
Change-Id: I352ed0ab0376e9392d205decdc569bac6304ba27
Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
Diffstat (limited to 'functest_kubernetes/k8stest.py')
-rw-r--r-- | functest_kubernetes/k8stest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py index 7d9400ed..2977bb81 100644 --- a/functest_kubernetes/k8stest.py +++ b/functest_kubernetes/k8stest.py @@ -51,6 +51,8 @@ class K8sTesting(testcase.TestCase): lines = output.split('\n') i = 0 while i < len(lines): + if 'Error' in lines[i]: + self.__logger.error(lines[i]) if '[k8s.io]' in lines[i]: if i != 0 and 'seconds' in lines[i - 1]: self.__logger.debug(lines[i - 1]) |