lib/scout/log.rb in scout-gear-6.0.0 vs lib/scout/log.rb in scout-gear-7.1.0
- old
+ new
@@ -204,10 +204,14 @@
def self.color_stack(stack)
stack.collect do |line|
line = line.sub('`',"'")
color = :green if line =~ /workflow/
color = :blue if line =~ /scout-/
- Log.color color, line
+ if color
+ Log.color color, line
+ else
+ line
+ end
end unless stack.nil?
end
def self.tsv(tsv, example = false)
STDERR.puts Log.color :magenta, "TSV log: " << Log.last_caller(caller).gsub('`',"'")