Rails.logger.error"schleuder-api-daemon is not running! '#{exc}'. This schleuder-web will be very useless without schleuder-api-daemon!"
rescueActiveResource::BadRequest=>exc
Rails.logger.error"schleuder-api-daemon returned HTTP status code 400: '#{exc}'. Please have a look at its output to find out about the causal problem. This schleuder-web will be very useless without schleuder-api-daemon!"
rescueActiveResource::UnauthorizedAccess=>exc
Rails.logger.error"Authentication failed with schleuder-api-daemon! Please check that the configured `api_key` is correct (in config/schleuder-web.yml)"
Rails.logger.error"Verifying the certificate of schleuder-api-daemon failed! Please check that the configured `tls_fingerprint` is correct (in config/schleuder-web.yml)."
else
Rails.logger.error"An unknow SSL-related error occurred while contacting schleuder-api-daemon: #{exc}"
end
rescueStandardError=>exc
Rails.logger.error"An unknown error occurred while contacting schleuder-api-daemon: #{exc}"