public
Fork of defunkt/exception_logger
Description: our hacks to exception_logger
Clone URL: git://github.com/anotherjesse/exception_logger.git
a few hacks we use at dancejam
anotherjesse (author)
Mon Feb 11 21:04:21 -0800 2008
commit  5d811138bedc9417f8233f9993ebe694f82bc52b
tree    9fb8a2abc6dd931ce646b37ee6bd35f61c4d1b35
parent  dc223837ff05daafc77651a077ca45713642acde
0
...
67
68
69
70
71
 
 
 
 
 
 
...
67
68
69
 
70
71
72
73
74
75
76
0
@@ -67,4 +67,9 @@ CREDITS
0
 
0
 Jamis Buck - original exception_notification plugin
0
 Rick Olson - model/controller code
0
-Josh Goebel - design
0
\ No newline at end of file
0
+Josh Goebel - design
0
+
0
+UPDATES
0
+
0
+Chris Wanstrath - use will_paginate
0
+Henrik Nyh (DanceJam) - catch exceptions in development mode
...
54
55
56
57
 
58
59
60
 
61
62
63
...
54
55
56
 
57
58
 
59
60
61
62
63
0
@@ -54,10 +54,10 @@ module ExceptionLoggable
0
     !self.class.local_addresses.detect { |addr| addr.include?(remote) }.nil?
0
   end
0
 
0
- def rescue_action_in_public(exception)
0
+ def rescue_action(exception)
0
     status = response_code_for_rescue(exception)
0
- render_optional_error_file status
0
     log_exception(exception) if status != :not_found
0
+ super
0
   end
0
 
0
   def log_exception(exception)
...
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.