Commit 60d3e94874964a626f105d3598e1c122addcf43e

Authored by Dmitriy Zaporozhets
2 parents b683a71a 6035ad7e

Merge pull request #1122 from patthoyts/pt/missing-log

Create the githost.log file if necessary.
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/gitlab/logger.rb
... ... @@ -10,6 +10,7 @@ module Gitlab
10 10  
11 11 def self.read_latest
12 12 path = Rails.root.join("log/githost.log")
  13 + self.build unless File.exist?(path)
13 14 logs = File.read(path).split("\n")
14 15 end
15 16  
... ...