Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Erlacher <erlacher@in.tum.de>2016-10-29 18:10:41 +0300
committerLukas Erlacher <erlacher@in.tum.de>2016-11-04 00:02:47 +0300
commite900e53aa530ce15a73a4bf88cafa304999a99e9 (patch)
treee1bcb69438728a437e11dfdc054173860144fcab /app/views/admin/logs
parentcc83039a7044cf2c51c9909a11fd6dd422f88b8c (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 'app/views/admin/logs')
-rw-r--r--app/views/admin/logs/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/logs/show.html.haml b/app/views/admin/logs/show.html.haml
index 676812121d7..824edd171f3 100644
--- a/app/views/admin/logs/show.html.haml
+++ b/app/views/admin/logs/show.html.haml
@@ -1,7 +1,7 @@
- @no_container = true
- page_title "Logs"
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
- Gitlab::ProductionLogger, Gitlab::SidekiqLogger,
+ Gitlab::EnvironmentLogger, Gitlab::SidekiqLogger,
Gitlab::RepositoryCheckLogger]
= render 'admin/background_jobs/head'