Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed formatting string for newer Ruby (> 1.8.4)

  • Loading branch information...
commit 58449442da470c98e08cd4ec5f1e71f02bbbac22 1 parent dc22383
Joshua Clayton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/logged_exception.rb
View
2  lib/logged_exception.rb
@@ -36,7 +36,7 @@ def request=(request)
else
max = request.env.keys.max { |a,b| a.length <=> b.length }
env = request.env.keys.sort.inject [] do |env, key|
- env << '* ' + ("%*-s: %s" % [max.length, key, request.env[key].to_s.strip])
+ env << '* ' + ("%-*s: %s" % [max.length, key, request.env[key].to_s.strip])
end
write_attribute(:environment, (env << "* Process: #{$$}" << "* Server : #{self.class.host_name}") * "\n")
Please sign in to comment.
Something went wrong with that request. Please try again.