lib/staccato/rack.rb in staccato-rack-0.3.0 vs lib/staccato/rack.rb in staccato-rack-0.3.1

- old
+ new

@@ -37,10 +37,10 @@ hostname: request.host, user_agent: request.env['HTTP_USER_AGENT'], user_ip: request.ip)) add_custom_to_hit(hit) r = hit.track! - logger.info "GA Tracking: #{hit.params.inspect} => #{r.response.code}" + logger.info "GA Tracking: #{hit.params.inspect} => #{r.response.code if r}" hit end def add_custom_to_hit(hit) @custom_metrics.each do |p, v|