summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/shell_out.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-06-24 23:22:37 -0700
committerClaire McQuin <claire@getchef.com>2014-06-27 12:43:54 -0700
commitb4ab3059da0b0be83525298bc7db9c64ebee2573 (patch)
tree371731337a44536d32a0a86df8611aa62726d8f3 /lib/chef/mixin/shell_out.rb
parent1b4235ab9855fe5c1ac86b9db4e26571500c5a78 (diff)
downloadchef-b4ab3059da0b0be83525298bc7db9c64ebee2573.tar.gz
Remove unnecessary debug statements.
Diffstat (limited to 'lib/chef/mixin/shell_out.rb')
-rw-r--r--lib/chef/mixin/shell_out.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb
index 4786901cdb..871a11749e 100644
--- a/lib/chef/mixin/shell_out.rb
+++ b/lib/chef/mixin/shell_out.rb
@@ -32,7 +32,6 @@ class Chef
# You can also call Mixlib::Shellout.new directly, but you lose all of the above functionality
def shell_out(*command_args)
- Chef::Log.logger.debug "executing commands: #{command_args}"
cmd = Mixlib::ShellOut.new(*run_command_compatible_options(command_args))
cmd.live_stream = io_for_live_stream
cmd.run_command
@@ -49,12 +48,10 @@ class Chef
if command_args.last.is_a?(Hash)
command_args[:environment] ||= {}
command_args[:environment]['LC_ALL'] ||= nil
- cmd = shell_out(*command_args)
+ shell_out(*command_args)
else
- cmd = shell_out(*command_args, :environment => {'LC_ALL' => nil})
+ shell_out(*command_args, :environment => {'LC_ALL' => nil})
end
- Chef::Log.logger.debug "exitstatus #{cmd.exitstatus}, stdout #{cmd.stdout}, stderr #{cmd.stderr}"
- cmd
end
DEPRECATED_OPTIONS =