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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Avoid Hash#delete on input
Oliver Günther41bd0dbd5a2f
diff --git a/config/initializers/grape_logging.rb b/config/initializers/grape_logging.rbindex 9276e6675b6..b19b0c5f8a6 100644--- a/config/initializers/grape_logging.rb+++ b/config/initializers/grape_logging.rb@@ -1,15 +1,14 @@OpenProject::Application.configure doconfig.after_initialize doActiveSupport::Notifications.subscribe('openproject_grape_logger') do |_, _, _, _, payload|- time = payload.delete :time+ time = payload[:time]attributes = {duration: time[:total],db: time[:db],view: time[:view]- }.merge(payload)+ }.merge(payload.except(:time))- string = OpenProject::Logging.formatter.call(attributes)- Rails.logger.info string+ Rails.logger.info OpenProject::Logging.formatter.call(attributes)endendend