Skip to content

Commit 5055fec

Browse files
fix: change logging info to error in quarto build (#655)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 6974bcb commit 5055fec

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

doc/changelog.d/655.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
change logging info to error in quarto build

src/ansys_sphinx_theme/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,23 @@ def convert_pdf_to_png(pdf_path: pathlib.Path, output_dir: pathlib.Path, output_
419419

420420

421421
def run_quarto_command(command, cwd):
422-
"""Run quarto command and logs its output."""
422+
"""Run quarto command and logs its output.
423+
424+
Parameters
425+
----------
426+
command : list
427+
List of command arguments.
428+
cwd : str
429+
Current working directory.
430+
"""
423431
command = ["quarto"] + command
424432
try:
425433
result = subprocess.run(command, cwd=cwd, check=True, capture_output=True, text=True)
426434
if result.stdout:
427435
logger.info(result.stdout)
428436

429437
if result.stderr:
430-
logger.info(result.stderr)
438+
logger.error(result.stderr)
431439

432440
except subprocess.CalledProcessError as e:
433441
raise RuntimeError(f"Failed to run the command: {e}")

0 commit comments

Comments
 (0)