lib/terraspace/cli/logs/concern.rb in terraspace-2.0.2 vs lib/terraspace/cli/logs/concern.rb in terraspace-2.0.3

- old
+ new

@@ -1,9 +1,9 @@ class Terraspace::CLI::Logs module Concern # Filters for lines that belong to the last ran process pid def readlines(path) - lines = IO.readlines(path) + lines = IO.readlines(path).map { |l| l.force_encoding('UTF-8') } found = lines.reverse.find do |line| pid(line) # search in reverse order for lines with interesting info end unless found puts "WARN: Could not find the pid in the logfile #{Terraspace::Util.pretty_path(path)}".color(:yellow)