Skip to content

Commit 4bc1944

Browse files
committed
Removed two logger entries in global test api functions (JSON parser prompters)
1 parent 7d3ce4d commit 4bc1944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workspace_tools/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def get_json_data_from_file(json_spec_filename, verbose=False):
813813
result = json.load(data_file)
814814
except ValueError as json_error_msg:
815815
result = None
816-
print self.logger.log_line(self.logger.LogType.ERROR, 'JSON file %s parsing failed. Reason: %s' % (json_spec_filename, json_error_msg))
816+
print 'JSON file %s parsing failed. Reason: %s' % (json_spec_filename, json_error_msg)
817817
# We can print where error occurred inside JSON file if we can parse exception msg
818818
json_format_defect_pos = json_format_error_defect_pos(str(json_error_msg))
819819
if json_format_defect_pos is not None:
@@ -823,7 +823,7 @@ def get_json_data_from_file(json_spec_filename, verbose=False):
823823
show_json_file_format_error(json_spec_filename, line, column)
824824

825825
except IOError as fileopen_error_msg:
826-
print self.logger.log_line(self.logger.LogType.ERROR, 'JSON file %s not opened. Reason: %s'% (json_spec_filename, fileopen_error_msg))
826+
print 'JSON file %s not opened. Reason: %s'% (json_spec_filename, fileopen_error_msg)
827827
print
828828
if verbose and result:
829829
pp = pprint.PrettyPrinter(indent=4)

0 commit comments

Comments
 (0)