Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

More sneaky logger calls caught red handed

Marcello Rocha232323be5255
diff --git a/modules/storages/app/common/storages/peripherals/registry.rb b/modules/storages/app/common/storages/peripherals/registry.rb
index 3e067f0315c..dc91fbfd13f 100644
--- a/modules/storages/app/common/storages/peripherals/registry.rb
+++ b/modules/storages/app/common/storages/peripherals/registry.rb
@@ -36,9 +36,12 @@ module Storages
extend Dry::Container::Mixin
class Resolver < Dry::Container::Resolver
+ include Snitch
def call(container, key)
- Rails.logger.tagged("Registry").info("Resolving #{key}")
- super
+ with_tagged_logger("Registry") do
+ info "Resolving #{key}"
+ super
+ end
rescue Dry::Container::KeyError
raise Errors.registry_error_for(key)
end