Class: Bumbleworks::ErrorLogger

Inherits:
ErrorHandler show all
Defined in:
lib/bumbleworks/error_logger.rb

Instance Attribute Summary

Attributes inherited from ErrorHandler

#workitem

Instance Method Summary collapse

Methods inherited from ErrorHandler

#initialize

Methods included from WorkitemEntityStorage

#entity_storage_workitem, #wrapped_workitem

Constructor Details

This class inherits a constructor from Bumbleworks::ErrorHandler

Instance Method Details

#on_errorObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/bumbleworks/error_logger.rb', line 3

def on_error
  return unless logger

  logger.error(
    :actor => @workitem.wf_name,
    :action => 'process error',
    :target_type => entity_fields[:type],
    :target_id => entity_fields[:identifier],
    :metadata => 
  )
end