X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d95ccc6bbbf94e957b939ca9d9aea71cda345944..deb104b3706fab06bf21a70fb9d85d2717f4f0c1:/services/api/lib/log_reuse_info.rb diff --git a/services/api/lib/log_reuse_info.rb b/services/api/lib/log_reuse_info.rb index b325a65e0a..5c7efd7ded 100644 --- a/services/api/lib/log_reuse_info.rb +++ b/services/api/lib/log_reuse_info.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + module LogReuseInfo # log_reuse_info logs whatever the given block returns, if # log_reuse_decisions is enabled. It accepts a block instead of a @@ -5,7 +9,7 @@ module LogReuseInfo # doing expensive things like database queries, and we want to skip # those when logging is disabled. def log_reuse_info(candidates=nil) - if Rails.configuration.log_reuse_decisions + if Rails.configuration.Containers.LogReuseDecisions msg = yield if !candidates.nil? msg = "have #{candidates.count} candidates " + msg