diff options
author | Serdar Sutay <serdar@opscode.com> | 2015-05-21 14:03:31 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2015-05-29 08:41:12 -0700 |
commit | 3e1cbd6856eda733a1ed800184d8545e5d070e8e (patch) | |
tree | ae3acb56976aaee7963ba20851a9684702d23370 /lib/chef/client.rb | |
parent | c58162b9ce165bde444ff396a95668666884c052 (diff) | |
download | chef-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.rb | 4 |
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 |