From d09f61d4fea6bbfd4aee145f3cb2098ac62f86be Mon Sep 17 00:00:00 2001 From: Doug Rinckes Date: Thu, 15 Dec 2022 02:24:41 +0100 Subject: [PATCH] log completion message (#1044) This logs the "done" message if neither delete nor archive options are set. --- misc/watcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/watcher.py b/misc/watcher.py index a9e27fb2..68e34dfa 100644 --- a/misc/watcher.py +++ b/misc/watcher.py @@ -103,6 +103,8 @@ def execute_ocrmypdf(file_path): elif ON_SUCCESS_ARCHIVE: log.info(f'OCR is done. Archiving {file_path.name} to {ARCHIVE_DIRECTORY}') shutil.move(file_path, f'{ARCHIVE_DIRECTORY}/{file_path.name}') + else: + log.info('OCR is done') else: log.info('OCR is done')