Add some logging for OCR.