summaryrefslogtreecommitdiff
path: root/lib/chef/client.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2015-05-21 14:03:31 -0700
committerSerdar Sutay <serdar@opscode.com>2015-05-29 08:41:12 -0700
commit3e1cbd6856eda733a1ed800184d8545e5d070e8e (patch)
treeae3acb56976aaee7963ba20851a9684702d23370 /lib/chef/client.rb
parentc58162b9ce165bde444ff396a95668666884c052 (diff)
downloadchef-3e1cbd6856eda733a1ed800184d8545e5d070e8e.tar.gz
Make sure the audit mode output is reflected both in the logs and in the formatter output.
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r--lib/chef/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb
index 51e78e60a9..9f16efb31e 100644
--- a/lib/chef/client.rb
+++ b/lib/chef/client.rb
@@ -725,11 +725,11 @@ class Chef
audit_exception = Chef::Exceptions::AuditsFailed.new(auditor.num_failed, auditor.num_total)
events.audit_phase_failed(audit_exception)
else
- events.audit_phase_complete
+ @events.audit_phase_complete(Chef::Audit::Logger.read_buffer)
end
rescue Exception => e
Chef::Log.error("Audit phase failed with error message: #{e.message}")
- events.audit_phase_failed(e)
+ @events.audit_phase_failed(e, Chef::Audit::Logger.read_buffer)
audit_exception = e
end
audit_exception