Improve admin logs

This commit is contained in:
Dmitriy Zaporozhets 2012-11-29 07:49:11 +03:00
parent eb1004f789
commit ff9a2e2a93
4 changed files with 16 additions and 8 deletions

View file

@ -11,7 +11,7 @@ module Gitlab
def self.read_latest
path = Rails.root.join("log", file_name)
self.build unless File.exist?(path)
logs = File.read(path).split("\n")
logs = `tail -n 2000 #{path}`.split("\n")
end
def self.build