Merge branch 'add-project-scope-to-live-trace-feature-flag' into 'master'

Add project scope to live trace feature flag

See merge request gitlab-org/gitlab-ce!31325
This commit is contained in:
Lin Jen-Shin 2019-07-31 13:30:06 +00:00
commit bea3d730c2
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ module Gitlab
raise AlreadyArchivedError, 'Could not write to the archived trace'
elsif current_path
File.open(current_path, mode)
elsif Feature.enabled?('ci_enable_live_trace')
elsif Feature.enabled?('ci_enable_live_trace', job.project)
Gitlab::Ci::Trace::ChunkedIO.new(job)
else
File.open(ensure_path, mode)