public
Description: FiveRuns TuneUp Panel
Homepage: http://fiveruns.org
Clone URL: git://github.com/fiveruns/fiveruns_tuneup.git
if the code can't find the log directory, just put it in tmp, so the rest of 
rails initialization won't bomb out
bryan (author)
Mon Jul 21 14:26:26 -0700 2008
commit  e5838f47f8e5678dcb3097278e9bae6f7514f62c
tree    e88a3f6565e9688c2e84bb0c0081758eead8fd53
parent  6c6146fb417d6efcafbd7142bc633ca7583f71bd
...
7
8
9
 
 
10
11
12
...
20
21
22
23
24
 
...
7
8
9
10
11
12
13
14
...
22
23
24
 
25
26
0
@@ -7,6 +7,8 @@ module Fiveruns::Tuneup
0
       @log_directory ||= begin
0
         rails_log = RAILS_DEFAULT_LOGGER.instance_eval { @log.path rescue @logdev.filename }
0
         File.dirname(rails_log)
0
+      rescue
0
+        Dir::tmpdir
0
       end
0
     end
0
     
0
@@ -20,4 +22,4 @@ module Fiveruns::Tuneup
0
     
0
   end
0
   
0
-end 
0
\ No newline at end of file
0
+end 

Comments