From 72652c82829995e4479b9f003b070e27adcf5836 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 4 Feb 2025 18:59:25 +0000 Subject: [PATCH] t/fiotestlib: JSON decoding debug prints Signed-off-by: Vincent Fu --- t/fiotestlib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/fiotestlib.py b/t/fiotestlib.py index 61adca149..860e0b0ac 100755 --- a/t/fiotestlib.py +++ b/t/fiotestlib.py @@ -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 @@ -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