extract_text: Better exception handling and logging
extract_text: Better exception handling and logging

Following commit 22e5fb36099b34154d42b4f276a5d771022812fe, using the
`try_or_log` decorator and a module-level logger should work without any
serialization errors.

opensyllabus/osp-pipeline,opensyllabus/osp-pipeline