Commit 6035ad7e1fe519d0c6a42731790183889e3ba31d
1 parent
8b7e404b
Exists in
master
and in
4 other branches
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,6 +10,7 @@ module Gitlab | ||
10 | 10 | ||
11 | def self.read_latest | 11 | def self.read_latest |
12 | path = Rails.root.join("log/githost.log") | 12 | path = Rails.root.join("log/githost.log") |
13 | + self.build unless File.exist?(path) | ||
13 | logs = File.read(path).split("\n") | 14 | logs = File.read(path).split("\n") |
14 | end | 15 | end |
15 | 16 |