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:
Diffstat (limited to 'qa/qa/runtime/logger.rb')
-rw-r--r--qa/qa/runtime/logger.rb26
1 files changed, 12 insertions, 14 deletions
diff --git a/qa/qa/runtime/logger.rb b/qa/qa/runtime/logger.rb
index e0e7385d6d4..7e78ba470d8 100644
--- a/qa/qa/runtime/logger.rb
+++ b/qa/qa/runtime/logger.rb
@@ -1,23 +1,21 @@
# frozen_string_literal: true
-require 'forwardable'
-
module QA
module Runtime
class Logger
- extend SingleForwardable
-
- def_delegators :logger, :debug, :info, :warn, :error, :fatal, :unknown
+ class << self
+ # Global logger instance
+ #
+ # @return [ActiveSupport::Logger]
+ def logger
+ @logger ||= Gitlab::QA::TestLogger.logger(
+ level: Gitlab::QA::Runtime::Env.log_level,
+ source: 'QA Tests',
+ path: File.expand_path('../../tmp', __dir__)
+ )
+ end
- # Global logger instance
- #
- # @return [ActiveSupport::Logger]
- def self.logger
- @logger ||= Gitlab::QA::TestLogger.logger(
- level: Gitlab::QA::Runtime::Env.log_level,
- source: 'QA Tests',
- path: File.expand_path('../../tmp', __dir__)
- )
+ delegate :debug, :info, :warn, :error, :fatal, :unknown, to: :logger
end
end
end