6
7
8
9
10
11
12
13
14
15
|
# File 'lib/airbrush/processors/processor.rb', line 6
def dispatch(command, args)
raise "Unknown processor operation #{command} (#{filter(args).inspect unless args.blank?})" unless self.respond_to? command
returning self.send(command, *assign(command, args)) do
log.debug "Processed #{command} (#{filter(args).inspect unless args.blank?})"
end
rescue Exception => e
buffer = "ERROR: Received error during processor dispatch for command '#{command}' (#{filter(args).inspect unless args.blank?})"
log.error buffer; log.error e
{ :exception => buffer, :message => e.message }
end
|