Add logging for salt-api requests/responses
Change-Id: I0dd73c60cc4364ce5962ddb2520390ad3ee32f06
Closes-Task:#PROD-29994(PROD:29994)
diff --git a/test_set/cvp-sanity/tests/test_salt_master.py b/test_set/cvp-sanity/tests/test_salt_master.py
index f0d6499..f2d7f1a 100644
--- a/test_set/cvp-sanity/tests/test_salt_master.py
+++ b/test_set/cvp-sanity/tests/test_salt_master.py
@@ -1,5 +1,6 @@
import json
import pytest
+import logging
@pytest.mark.full
@@ -36,7 +37,7 @@
expr_form='pillar', check_status=True).values()[0]
reclass_warnings = reclass[reclass.keys()[0]].split('{\n "base":')[0]
if reclass_warnings:
- print "\nReclass-salt output has warnings"
+ logging.warning("\nReclass-salt output has warnings: {}".format(reclass_warnings))
reclass_nodes = reclass[reclass.keys()[0]].split('{\n "base":')[1]
assert reclass_nodes != '', 'No nodes were found in' \
' reclass-salt --top output'