Commit 60d3e94874964a626f105d3598e1c122addcf43e
Exists in
master
and in
4 other branches
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,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 |