diff --git a/pagerite/app.py b/pagerite/app.py index dd2a47b..c63b0e3 100644 --- a/pagerite/app.py +++ b/pagerite/app.py @@ -66,6 +66,10 @@ from pagerite.markdown import render, toggle_task logger = logging.getLogger(__name__) +# mediapreview logs pyvips noise ("VipsForeignSaveJpegTarget argument strip is +# deprecated", "threadpool completed with N workers") at INFO; keep warnings. +logging.getLogger("mediapreview").setLevel(logging.WARNING) + # Site identity: the hostname comes from the CLI (first positional argument, # exported as PAGERITE_HOSTNAME) and names the per-site data directory # ``/{content.kantadb, analytics.json, files}`` under the cwd.