Skip to content

Commit

Permalink
t/fiotestlib: JSON decoding debug prints
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Feb 4, 2025
1 parent ce47272 commit 72652c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/fiotestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def get_json(self):
filename = self.filenames['output']
with open(filename, 'r', encoding=locale.getpreferredencoding()) as file:
file_data = file.read()
logging.debug("output: %s", file_data)

#
# Sometimes fio informational messages are included at the top of the
Expand All @@ -329,6 +330,7 @@ def get_json(self):
try:
self.json_data = json.loads(file_data)
except json.JSONDecodeError:
logging.debug("output: %s", file_data)
return False

return True
Expand Down

0 comments on commit 72652c8

Please sign in to comment.