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

Warps logging implementations. Now on to error messages

Marcello Rochad0251a88adbd
diff --git a/modules/storages/app/common/storages/snitch.rb b/modules/storages/app/common/storages/snitch.rb
new file mode 100644
index 00000000000..536f66e53a2
--- /dev/null
+++ b/modules/storages/app/common/storages/snitch.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+#-- copyright
+#++
+
+module Storages
+ module Snitch
+ delegate :info, :error, to: :logger
+
+ def with_tagged_logger(tag = self.class, &)
+ logger.tagged(*tag, &)
+ end
+
+ def logger
+ Rails.logger
+ end
+ end
+end