diff --git a/src/rhsmlib/facts/hwprobe.py b/src/rhsmlib/facts/hwprobe.py index b1ffb78551..d11b35cc7f 100644 --- a/src/rhsmlib/facts/hwprobe.py +++ b/src/rhsmlib/facts/hwprobe.py @@ -653,12 +653,10 @@ def _parse_lscpu_json_output(self, lscpu_env: Dict[str, str]) -> Dict[str, str]: log.warning("Failed to run 'lscpu --json': %s", e) return {} - log.debug("Parsing lscpu JSON: %s", output) - try: output_json: dict = json.loads(output) - except json.JSONDecodeError as e: - log.warning("Failed to load the lscpu JSON: %s", e) + except json.JSONDecodeError: + log.exception("Failed to load the lscpu JSON: %s", output) return {} try: