Skip to content

Commit

Permalink
fix sinatra logging under passenger
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Aug 16, 2009
1 parent ca9c87c commit 88a0efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.ru
Expand Up @@ -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)

Expand Down

0 comments on commit 88a0efd

Please sign in to comment.