Permalink
Browse files

fix sinatra logging under passenger

  • Loading branch information...
1 parent ca9c87c commit 88a0efd2dcad62a0cffe0e6b0abafe99f11b7d41 @zapnap committed Aug 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 config.ru
View
@@ -4,7 +4,7 @@ set :run, false
set :environment, :production
FileUtils.mkdir_p 'log' unless File.exists?('log')
-log = File.new("log/sinatra.log", "a")
+log = File.new("log/sinatra.log", "a+")
$stdout.reopen(log)
$stderr.reopen(log)

0 comments on commit 88a0efd

Please sign in to comment.