*   Change logging instrumentation to log errors when a job raises an exception.

    Fixes #26848.

    *Steven Bull*


Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/activejob/CHANGELOG.md) for previous changes.