Module: Roby::Log::TransactionHooks

Included in:
Transaction
Defined in:
lib/roby/log/hooks.rb

Constant Summary collapse

HOOKS =
%w{committed_transaction discarded_transaction}

Instance Method Summary collapse

Instance Method Details

#committed_transactionObject



88
89
90
91
# File 'lib/roby/log/hooks.rb', line 88

def committed_transaction
    super if defined? super
    Roby::Log.log(:committed_transaction) { [self] }
end

#discarded_transactionObject



92
93
94
95
# File 'lib/roby/log/hooks.rb', line 92

def discarded_transaction
    super if defined? super
    Roby::Log.log(:discarded_transaction) { [self] }
end