Added flogging to tests/redfish10/test_redfish10_api_systems.py
@@ -11,6 +11,8 @@ import os
import sys
import subprocess
import fit_common
+import flogging
+log = flogging.get_loggers()
# Local methods
@@ -225,7 +227,7 @@ class redfish10_api_systems(fit_common.unittest.TestCase):
if fit_common.VERBOSITY >= 3:
print ("\t {0}".format(nodeid[item]))
if len(nodeid[item]) == 0 and item == 'Message':
- print "empty message"
+ log.info_5("Message field empty for SEL SensorType:" + nodeid['SensorType'] + " SensorNumber:" + str(nodeid['SensorNumber']))
else:
self.assertGreater(len(nodeid[item]), 0, item + ' field empty')
for link in [ 'OriginOfCondition' ]:
@@ -266,7 +268,7 @@ class redfish10_api_systems(fit_common.unittest.TestCase):
if fit_common.VERBOSITY >= 3:
print ("\t {0}".format(seldata['json'][item]))
if len(seldata['json'][item]) == 0 and item == 'Message':
- print "message empty"
+ log.info_5("Message field empty for SEL SensorType:" + seldata['json']['SensorType'] + " SensorNumber:" + str(seldata['json']['SensorNumber']))
else:
self.assertGreater(len(seldata['json'][item]), 0, item + ' field empty')
