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

output swallowed logs failed to delegate; try fix (.to_h)

Markus Kahl9ae5044f9870
diff --git a/lib/open_project/logging/log_delegator.rb b/lib/open_project/logging/log_delegator.rb
index 8d4e83416f7..0ff775df15a 100644
--- a/lib/open_project/logging/log_delegator.rb
+++ b/lib/open_project/logging/log_delegator.rb
@@ -24,9 +24,9 @@ module OpenProject
context[:current_user] ||= User.current
registered_handlers.values.each do |handler|
- handler.call message, context
+ handler.call message, context.to_h
rescue StandardError => e
- Rails.logger.error "Failed to delegate log to #{handler.inspect}: #{e.inspect}"
+ Rails.logger.error "Failed to delegate log to #{handler.inspect}: #{e.inspect}\nMessage: #{message.inspect}"
end
nil