Also generate log file in temp folder on verbose mode

This commit is contained in:
James R. Barlow
2020-01-05 21:33:32 -08:00
parent 5169ac633b
commit 6f5d77d930
+1 -1
View File
@@ -357,7 +357,7 @@ def run_pipeline(options, api=False):
options.jobs = available_cpu_count()
work_folder = mkdtemp(prefix="com.github.ocrmypdf.")
if options.keep_temporary_files:
if options.keep_temporary_files or options.verbose >= 1:
configure_debug_logging(Path(work_folder) / "debug.log")
try: