Chef::Log.info("Chef server generated run history id: #{@run_id}")
@summary_only=server_response["summary_only"]
rescueNet::HTTPServerException=>e
raiseunlesse.response.code.to_s=="404"
Chef::Log.debug("Received 404 attempting to generate run history id (URL Path: #{resource_history_url}), assuming feature is not supported.")
ife.response.code.to_s=="404"
Chef::Log.debug("Received 404 attempting to generate run history id (URL Path: #{resource_history_url}), assuming feature is not supported.")
else
ifChef::Config[:enable_reporting_url_fatals]
Chef::Log.error("Received #{e.response.code} attempting to generate run history id (URL Path: #{resource_history_url}), and enable_reporting_url_fatals is set, aborting run.")
raise
else
Chef::Log.info("Received #{e.response.code} attempting to generate run history id (URL Path: #{resource_history_url}), disabling reporting for this run.")