summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-11-17 14:39:45 -0800
committerSerdar Sutay <serdar@opscode.com>2014-11-17 14:39:45 -0800
commitcabad557588dcdb62c8bcca796bbe543b7b93214 (patch)
tree42747cac73b1e247ffeb1d00d749ac2401535fb4
parent58ccdf45109c6ab306e955d63889cbbea7752973 (diff)
downloadchef-cabad557588dcdb62c8bcca796bbe543b7b93214.tar.gz
Updates based on PR comments.
-rw-r--r--lib/chef/audit/audit_reporter.rb3
-rw-r--r--lib/chef/config.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/audit/audit_reporter.rb b/lib/chef/audit/audit_reporter.rb
index 8552165578..40776ebefb 100644
--- a/lib/chef/audit/audit_reporter.rb
+++ b/lib/chef/audit/audit_reporter.rb
@@ -99,8 +99,7 @@ class Chef
run_data[:error] = "#{error.class.to_s}: #{error.message}\n#{error.backtrace.join("\n")}"
end
- # TODO: We might want to change this to :debug
- Chef::Log.info "Audit Report:\n#{Chef::JSONCompat.to_json_pretty(run_data)}"
+ Chef::Log.debug "Audit Report:\n#{Chef::JSONCompat.to_json_pretty(run_data)}"
compressed_data = encode_gzip(Chef::JSONCompat.to_json(run_data))
# Since we're posting compressed data we can not directly call post_rest which expects JSON
audit_url = rest_client.create_url(audit_history_url)
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index e7edbea59e..7613a4fd4a 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -319,7 +319,7 @@ class Chef
default :client_fork, true
default :enable_reporting, true
default :enable_reporting_url_fatals, false
- default :audit_mode, true
+ default :audit_mode, nil
# Policyfile is an experimental feature where a node gets its run list and
# cookbook version set from a single document on the server instead of