lib/kaya/support/logs.rb in kaya-0.0.11 vs lib/kaya/support/logs.rb in kaya-0.0.12

- old
+ new

@@ -19,14 +19,9 @@ def self.read_log_file_content_for log=nil path = "#{Dir.pwd}/kaya/#{log}" if File.exist?("#{path}") FileUtils.cp(path, "#{path}~") all_content = IO.read("#{path}~") - # content = if all_content.split("\n").size > 1000 - # all_content.split("\n")[-1000..-1].join("<br>") - # else - # all_content.gsub("\n","<br>") - # end content = all_content.gsub("\n","<br>") File.delete("#{path}~") else content = "" end \ No newline at end of file