summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-08-22 17:12:48 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-08-22 17:12:48 -0400
commite288afec9ccd85fb444ec11d5359a17f8c657f06 (patch)
tree9100a81534adc3262c45c7c59b9314f9ed303012 /app/controllers
parent4598e0c3924b30d11495e803e88a6ded11094318 (diff)
downloadgitlab-ce-e288afec9ccd85fb444ec11d5359a17f8c657f06.tar.gz
Refactor `Admin::LogsController#show`rs-fix-admin-logs-timeout
We should be defining the list of loggers in the controller, not the view.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin/logs_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/admin/logs_controller.rb b/app/controllers/admin/logs_controller.rb
index b999018dde4..bdc4332ae69 100644
--- a/app/controllers/admin/logs_controller.rb
+++ b/app/controllers/admin/logs_controller.rb
@@ -1,2 +1,11 @@
class Admin::LogsController < Admin::ApplicationController
+ def show
+ @loggers = [
+ Gitlab::AppLogger,
+ Gitlab::GitLogger,
+ Gitlab::EnvironmentLogger,
+ Gitlab::SidekiqLogger,
+ Gitlab::RepositoryCheckLogger
+ ]
+ end
end