lib/alephant/renderer/view_mapper.rb in alephant-renderer-1.0.5 vs lib/alephant/renderer/view_mapper.rb in alephant-renderer-2.0.0

- old
+ new

@@ -30,11 +30,17 @@ end private def raise_error(path) - logger.metric("ViewMapperInvalidPath") - raise "Invalid path: '#{path}'" + raise("Invalid path: '#{path}'").tap do + logger.metric("ViewMapperInvalidPath") + logger.error( + "event" => "ViewMapperBasePathInvalidFound", + "path" => path, + "method" => "#{self.class}#raise_error" + ) + end end def model(view_id, data) require model_location_for view_id Views.get_registered_class(view_id).new(data)