diff --git a/doc/changelog.d/664.fixed.md b/doc/changelog.d/664.fixed.md new file mode 100644 index 000000000..8da04c35e --- /dev/null +++ b/doc/changelog.d/664.fixed.md @@ -0,0 +1 @@ +quarto std logging \ No newline at end of file diff --git a/src/ansys_sphinx_theme/cheatsheet.py b/src/ansys_sphinx_theme/cheatsheet.py index edd735988..62826bee2 100644 --- a/src/ansys_sphinx_theme/cheatsheet.py +++ b/src/ansys_sphinx_theme/cheatsheet.py @@ -108,12 +108,9 @@ def run_quarto_command(command: List[str], cwd: str) -> None: logger.info(result.stdout) if result.stderr: - if "error" or "failed" in result.stderr.lower(): - logger.error(result.stderr) - else: - # HACK: Quarto writes both stdout and stderr to stderr - # so we need to log it as info if it's not an error - logger.info(result.stderr) + # HACK: Quarto writes both stdout and stderr to stderr + # so we need to log it as info if it's not an error + logger.info(result.stderr) except subprocess.CalledProcessError as e: raise RuntimeError(f"Failed to run the command: {e}")