Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Jun 4, 2009
1 parent dfce3c3 commit c029ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.ru
Expand Up @@ -5,7 +5,7 @@ set :environment, :production

FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
$stdout.reopen(log)
$stderr.reopen(log)

run Sinatra::Application

0 comments on commit c029ef6

Please sign in to comment.