summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Erlacher <erlacher@in.tum.de>2016-10-29 17:10:41 +0200
committerLukas Erlacher <erlacher@in.tum.de>2016-11-03 22:02:47 +0100
commite900e53aa530ce15a73a4bf88cafa304999a99e9 (patch)
treee1bcb69438728a437e11dfdc054173860144fcab /lib
parentcc83039a7044cf2c51c9909a11fd6dd422f88b8c (diff)
downloadgitlab-ce-e900e53aa530ce15a73a4bf88cafa304999a99e9.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/environment_logger.rb (renamed from lib/gitlab/production_logger.rb)4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/production_logger.rb b/lib/gitlab/environment_logger.rb
index 89ce7144b1b..407cc572656 100644
--- a/lib/gitlab/production_logger.rb
+++ b/lib/gitlab/environment_logger.rb
@@ -1,7 +1,7 @@
module Gitlab
- class ProductionLogger < Gitlab::Logger
+ class EnvironmentLogger < Gitlab::Logger
def self.file_name_noext
- 'production'
+ Rails.env
end
end
end