Fix Job object logging

Steps to reproduce

Steps to reproduce:
1. Run Opencast until you get an error that logs something like logger.error("Error dispatching job " + job, cause);
2. View the error in the log

Actual Results: The log reads something like "Error dispatching job org.opencastproject.job.api.JobImpl@918b7817"

Expected Results: Expect to see something like "Error dispatching job id 1234 operation COMPOSE"

Workaround (if any):
Add a Job impl toString() override to output relevant data in the logs for better troubleshooting.

Fixed and reviewed


Former user


Former user


Incorrect Documentation

Tags (folksonomy)