lib/chef_metal/transport.rb in chef-metal-0.8 vs lib/chef_metal/transport.rb in chef-metal-0.8.1
- old
+ new
@@ -40,17 +40,17 @@
options[:stream].call(stdout_chunk, stderr_chunk)
else
if stdout_chunk
if options[:stream_stdout]
options[:stream_stdout].print stdout_chunk
- elsif options[:stream]
+ elsif options[:stream] || Chef::Config.log_level == :debug
STDOUT.print stdout_chunk
end
end
if stderr_chunk
if options[:stream_stderr]
options[:stream_stderr].print stderr_chunk
- elsif options[:stream]
+ elsif options[:stream] || Chef::Config.log_level == :debug
STDERR.print stderr_chunk
end
end
end
end