Issue #69: add logging.

This commit is contained in:
Sergey Vartanov 2021-08-16 05:13:42 +03:00
parent edd3512526
commit 8fe2f15663
3 changed files with 14 additions and 0 deletions

View file

@ -1,6 +1,7 @@
"""
Rasterize vector graphics using Inkscape.
"""
import logging
import os
import subprocess
from pathlib import Path
@ -25,4 +26,5 @@ def rasterize(from_: Path, to_: Path, area: str = "", dpi: float = 90) -> None:
commands += ["--export-area", area]
commands += [from_.absolute()]
logging.info(f"Rasterize SVG file to {to_}...")
subprocess.run(commands)