summaryrefslogtreecommitdiff
path: root/lib/chef/application/windows_service.rb
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2015-10-20 16:27:02 -0700
committerMatt Wrock <matt@mattwrock.com>2015-10-20 16:27:02 -0700
commit29c01fd3235ba333b68ae1f6a972c049aec00c8c (patch)
tree9a418d932d5e806de6ff5c254f11f763e5a8c603 /lib/chef/application/windows_service.rb
parent4d35de670c9d54ad3b672e668672ba3256e2aef8 (diff)
downloadchef-29c01fd3235ba333b68ae1f6a972c049aec00c8c.tar.gz
add logger to windows service shelloutservice_logger
Diffstat (limited to 'lib/chef/application/windows_service.rb')
-rw-r--r--lib/chef/application/windows_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/application/windows_service.rb b/lib/chef/application/windows_service.rb
index b42a01cfdb..2551582c3a 100644
--- a/lib/chef/application/windows_service.rb
+++ b/lib/chef/application/windows_service.rb
@@ -189,7 +189,11 @@ class Chef
config_params += " -c #{Chef::Config[:config_file]}" unless Chef::Config[:config_file].nil?
config_params += " -L #{Chef::Config[:log_location]}" unless Chef::Config[:log_location] == STDOUT
# Starts a new process and waits till the process exits
- result = shell_out("chef-client #{config_params}", :timeout => Chef::Config[:windows_service][:watchdog_timeout])
+ result = shell_out(
+ "chef-client #{config_params}",
+ :timeout => Chef::Config[:windows_service][:watchdog_timeout],
+ :logger => Chef::Log
+ )
Chef::Log.debug "#{result.stdout}"
Chef::Log.debug "#{result.stderr}"
rescue Mixlib::ShellOut::CommandTimeout => e