Permalink
Browse files

fix sinatra logging under passenger

  • Loading branch information...
1 parent f9590ee commit 2fa1bf4b1b1262bfa3bc0cca6159dcb9d484c57c @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 2fa1bf4

Please sign in to comment.