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.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/qa/qa/runtime/logger.rb b/qa/qa/runtime/logger.rb
index 1f17146303a..e0e7385d6d4 100644
--- a/qa/qa/runtime/logger.rb
+++ b/qa/qa/runtime/logger.rb
@@ -9,10 +9,14 @@ module QA
def_delegators :logger, :debug, :info, :warn, :error, :fatal, :unknown
+ # Global logger instance
+ #
+ # @return [ActiveSupport::Logger]
def self.logger
@logger ||= Gitlab::QA::TestLogger.logger(
- level: Runtime::Env.debug? ? ::Logger::DEBUG : ::Logger::INFO,
- source: 'QA Tests'
+ level: Gitlab::QA::Runtime::Env.log_level,
+ source: 'QA Tests',
+ path: File.expand_path('../../tmp', __dir__)
)
end
end