Commit 6035ad7e1fe519d0c6a42731790183889e3ba31d

Authored by Pat Thoyts
1 parent 8b7e404b

Create the githost.log file if necessary.

This resolves issue #1121.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
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  
... ...