public
Fork of defunkt/exception_logger
Description: Don't use this fork, instead use the original by defunkt as that has these changes merged in.
Clone URL: git://github.com/ryanb/exception_logger.git
Fixed formatting string for newer Ruby (> 1.8.4)
joshuaclayton (author)
Fri Mar 28 06:16:53 -0700 2008
commit  58449442da470c98e08cd4ec5f1e71f02bbbac22
tree    faf4903526122f92cc90f8ed3a65a243986d7a1b
parent  dc223837ff05daafc77651a077ca45713642acde
...
36
37
38
39
 
40
41
42
...
36
37
38
 
39
40
41
42
0
@@ -36,7 +36,7 @@ class LoggedException < ActiveRecord::Base
0
     else
0
       max = request.env.keys.max { |a,b| a.length <=> b.length }
0
       env = request.env.keys.sort.inject [] do |env, key|
0
- env << '* ' + ("%*-s: %s" % [max.length, key, request.env[key].to_s.strip])
0
+ env << '* ' + ("%-*s: %s" % [max.length, key, request.env[key].to_s.strip])
0
       end
0
       write_attribute(:environment, (env << "* Process: #{$$}" << "* Server : #{self.class.host_name}") * "\n")
0
       

Comments

    No one has commented yet.