Skip to content

Commit 5aa657c

Browse files
joewilliamsdanielsdeleo
authored andcommitted
no need to log things multiple times
1 parent 59da6c0 commit 5aa657c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

chef/lib/chef/provider/erl_call.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,18 @@ def action_run
7070

7171
stdout_output = ""
7272
stdout.each_line { |line|
73-
Chef::Log.debug("#{line}")
7473
stdout_output << line
7574
}
7675
stdout.close
7776

7877
stderr_output = ""
7978
stderr.each_line { |line|
80-
Chef::Log.debug("#{line}")
8179
stderr_output << line
8280
}
8381
stderr.close
8482

8583
if stdout_output.include?('{ok,')
84+
Chef::Log.debug("#{stdout_output}")
8685
Chef::Log.info("Ran erl_call[#{@new_resource.name}] successfully")
8786
elsif stderr_output.length > 0
8887
raise Chef::Exceptions::ErlCall, stderr_output

0 commit comments

Comments
 (0)