Skip to content

Commit e3a5d0a

Browse files
committed
prettier, cleaned up logging output
1 parent e1500e1 commit e3a5d0a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

chef/lib/chef/provider/erl_call.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ def action_run
5656
command = "erl_call -e #{distributed} #{node} #{cookie}"
5757

5858
status = popen4(command, :waitlast => true) do |pid, stdin, stdout, stderr|
59-
Chef::Log.info("Running erl_call '#{@new_resource.name}' on '#{@new_resource.node_name}'")
60-
Chef::Log.debug("erl_call '#{@new_resource.name}' command: #{command}")
61-
Chef::Log.debug("erl_call '#{@new_resource.name}' code: #{@new_resource.code}")
59+
Chef::Log.debug("Running erl_call[#{@new_resource.name}]")
60+
Chef::Log.debug("erl_call[#{@new_resource.name}] command: #{command}")
61+
Chef::Log.debug("erl_call[#{@new_resource.name}] code: #{@new_resource.code}")
6262
@new_resource.code.each { |line| stdin.puts "#{line.chomp!}" }
6363
stdin.close
64-
Chef::Log.debug("erl_call '#{@new_resource.name}' output: ")
64+
Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
65+
Chef::Log.debug("erl_call[#{@new_resource.name}] output: ")
6566
stdout.each { |line| Chef::Log.debug("#{line}")}
6667
end
6768
end

0 commit comments

Comments
 (0)