lib/alephant/renderer.rb in alephant-renderer-1.0.5 vs lib/alephant/renderer.rb in alephant-renderer-2.0.0
- old
+ new
@@ -23,14 +23,20 @@
end
private
def mapper
- logger.info "Renderer#mapper: renderer id '#{config[:renderer_id]}', view path '#{config[:view_path]}'"
@mapper ||= ViewMapper.new(
config[:renderer_id],
config[:view_path]
- )
+ ).tap do
+ logger.info(
+ "event" => "ViewMapperCreated",
+ "rendererId" => config[:renderer_id],
+ "viewPath" => config[:view_path],
+ "method" => "#{self.class}#mapper"
+ )
+ end
end
end
end
end