Merge pull request #1122 from patthoyts/pt/missing-log
Create the githost.log file if necessary.
This commit is contained in:
commit
60d3e94874
|
@ -10,6 +10,7 @@ module Gitlab
|
||||||
|
|
||||||
def self.read_latest
|
def self.read_latest
|
||||||
path = Rails.root.join("log/githost.log")
|
path = Rails.root.join("log/githost.log")
|
||||||
|
self.build unless File.exist?(path)
|
||||||
logs = File.read(path).split("\n")
|
logs = File.read(path).split("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue