e900e53aa5
No matter which environment Gitlab was running as, the admin/logs view always showed production.log. This commit selects the logfile based on Rails.env. - Rename ProductionLogger to EnvironmentLogger - Make EnvironmentLogger logfile depend on env - Update spinach test for log tabs
7 lines
120 B
Ruby
7 lines
120 B
Ruby
module Gitlab
|
|
class EnvironmentLogger < Gitlab::Logger
|
|
def self.file_name_noext
|
|
Rails.env
|
|
end
|
|
end
|
|
end
|