Commit 1daa817
committed
fix: demote misleading LibreOffice 'not found' warning to debug (closes HKUDS#230)
On systems where only 'soffice' is on PATH (common on macOS), the
existing fallback loop logged a WARNING for the 'libreoffice' candidate
before successfully converting via 'soffice'. This caused users to see:
WARNING: LibreOffice command 'libreoffice' not found
INFO: Successfully converted file.pptx to PDF using soffice
…and conclude that something was broken, even though the conversion
succeeded.
Fix: log FileNotFoundError at DEBUG level for any non-final candidate
so that routine 'libreoffice' → 'soffice' fallback stays silent in
normal logs. The WARNING is preserved only when the last candidate in
the list is not found (meaning no usable LibreOffice binary exists at
all and the conversion is about to fail).1 parent 5fbff29 commit 1daa817
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
192 | 204 | | |
193 | 205 | | |
194 | 206 | | |
| |||
0 commit comments