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:
authorMichael Kozono <mkozono@gmail.com>2018-09-21 01:40:15 +0300
committerMichael Kozono <mkozono@gmail.com>2018-09-24 22:11:27 +0300
commita54a5d9f39df505fe7c68e14c693553bd29bd725 (patch)
treee742f1ddda1caec321b3048032a011c70b784eaf /lib/gitlab/logger.rb
parent22bf3848ef0e59fb7689bfeab3ba0d8079f1597e (diff)
Use `Gitlab::SafeRequestStore` in more places
Even if it doesn’t save lines of code, since people will tend to use code they’ve seen. And `SafeRequestStore` is safer since you don’t have to remember to check `RequestStore.active?`.
Diffstat (limited to 'lib/gitlab/logger.rb')
-rw-r--r--lib/gitlab/logger.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/logger.rb b/lib/gitlab/logger.rb
index e58927a40b9..3d7c049c17f 100644
--- a/lib/gitlab/logger.rb
+++ b/lib/gitlab/logger.rb
@@ -30,7 +30,7 @@ module Gitlab
end
def self.build
- RequestStore[self.cache_key] ||= new(self.full_log_path)
+ Gitlab::SafeRequestStore[self.cache_key] ||= new(self.full_log_path)
end
def self.full_log_path