lib/terraspace/logger.rb in terraspace-2.0.3 vs lib/terraspace/logger.rb in terraspace-2.1.0
- old
+ new
@@ -12,10 +12,10 @@
line = if @logdev.dev == $stdout || @logdev.dev == $stderr
msg # super simple format if stdout
else
super # use the configured formatter
end
- out = line =~ /\n$/ ? line : "#{line}\n"
+ out = line.force_encoding('UTF-8') =~ /\n$/ ? line : "#{line}\n"
@@buffer << out
out
end
# Used to allow terraform output to always go to stdout