gitlab-org--gitlab-foss/app/controllers/admin/logs_controller.rb
Toon Claes ddf892b9f2 Put loggers in before_action for easier overriding in EE
Make it easier to override the set of loggers, by putting them in a
separate method.

Also modify spec so it tests for links, instead of checking for
regular text.
2017-09-06 15:25:51 +02:00

18 lines
311 B
Ruby

class Admin::LogsController < Admin::ApplicationController
before_action :loggers
def show
end
private
def loggers
@loggers ||= [
Gitlab::AppLogger,
Gitlab::GitLogger,
Gitlab::EnvironmentLogger,
Gitlab::SidekiqLogger,
Gitlab::RepositoryCheckLogger
]
end
end