Add debugging output to the error log.