Skip to content

Commit

Permalink
log completion message (#1044)
Browse files Browse the repository at this point in the history
This logs the "done" message if neither delete nor archive options are set.
  • Loading branch information
drinckes committed Dec 15, 2022
1 parent 4a01306 commit d09f61d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misc/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit d09f61d

Please sign in to comment.