gitlab-org--gitlab-foss/lib/gitlab/environment_logger.rb
Lukas Erlacher e900e53aa5 Show log corresponding to env in admin/logs
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
2016-11-03 22:02:47 +01:00

7 lines
120 B
Ruby

module Gitlab
class EnvironmentLogger < Gitlab::Logger
def self.file_name_noext
Rails.env
end
end
end