module ActsAsSolr::InstanceMethods
def solr_destroy_with_error_handling
begin
solr_destroy_without_error_handling
rescue => e
logger.error "error deleting from solr: #{e}\n#{e.backtrace.join("\n")}"
end
true
end
alias_method_chain :solr_destroy, :error_handling
end
which seems to work...
0 comments:
Post a Comment