lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.10.0 vs lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.10.1

- old
+ new

@@ -1,7 +1,7 @@ module ForemanTasks - # wrap the dynflow persistence to reflect the changes to execution plan + # Wrap the Dynflow persistence to reflect the changes to execution plan # in the Task model. This is probably a temporary solution and # Dynflow will probably get more events-based API but it should be enought # for start, until the requiements on the API are clear enough. class Dynflow::Persistence < ::Dynflow::PersistenceAdapters::Sequel def save_execution_plan(execution_plan_id, value) @@ -9,10 +9,11 @@ clear_connections = ActiveRecord::Base.connection.open_transactions.zero? super.tap do begin on_execution_plan_save(execution_plan_id, value) rescue => e - Foreman::Logging.exception('Error on on_execution_plan_save event', e, :logger => 'foreman-tasks/dynflow') + Foreman::Logging.exception('Error on on_execution_plan_save event', e, + :logger => 'dynflow') end end ensure ::ActiveRecord::Base.clear_active_connections! if clear_connections end