Skip to content

Commit

Permalink
Fix in case endpoint is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Naseem Hakim committed Mar 26, 2013
1 parent 4521aad commit 0281424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/saddle/middleware/statsd_logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def call(env)
if env[:request][:statsd_path]
statsd_path = env[:request][:statsd_path]
elsif env[:request][:saddle] && env[:request][:saddle][:call_chain] && env[:request][:saddle][:action]
statsd_path = "#{env[:request][:saddle][:call_chain].join(".")}.#{env[:request][:saddle][:action]}"
statsd_path = (env[:request][:saddle][:call_chain] << env[:request][:saddle][:action]).join(".")
end

if statsd_path
Expand Down

0 comments on commit 0281424

Please sign in to comment.