app/lib/actions/helpers/lifecycle_logging.rb in foreman-tasks-5.3.0 vs app/lib/actions/helpers/lifecycle_logging.rb in foreman-tasks-6.0.0
- old
+ new
@@ -5,10 +5,10 @@
base.execution_plan_hooks.use :log_task_state_change
end
def log_task_state_change(execution_plan)
return unless root_action?
- logger = Rails.application.dynflow.world.action_logger
+ logger = ::Rails.application.dynflow.world.action_logger
task_id = ForemanTasks::Task::DynflowTask.where(external_id: execution_plan.id).pluck(:id).first
task_id_parts = []
task_id_parts << "id: #{task_id}" if task_id
task_id_parts << "execution_plan_id: #{execution_plan.id}"