diff options
author | Lukas Erlacher <erlacher@in.tum.de> | 2016-10-29 18:10:41 +0300 |
---|---|---|
committer | Lukas Erlacher <erlacher@in.tum.de> | 2016-11-04 00:02:47 +0300 |
commit | e900e53aa530ce15a73a4bf88cafa304999a99e9 (patch) | |
tree | e1bcb69438728a437e11dfdc054173860144fcab /features | |
parent | cc83039a7044cf2c51c9909a11fd6dd422f88b8c (diff) |
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 'features')
-rw-r--r-- | features/steps/admin/logs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/admin/logs.rb b/features/steps/admin/logs.rb index f9e49588c75..63881d69146 100644 --- a/features/steps/admin/logs.rb +++ b/features/steps/admin/logs.rb @@ -4,7 +4,7 @@ class Spinach::Features::AdminLogs < Spinach::FeatureSteps include SharedAdmin step 'I should see tabs with available logs' do - expect(page).to have_content 'production.log' + expect(page).to have_content 'test.log' expect(page).to have_content 'githost.log' expect(page).to have_content 'application.log' end |