Permalink
Browse files

logging fix

  • Loading branch information...
1 parent 4a290b8 commit f9590ee6a482c9c105c4557aac90467bd9a90e6c @zapnap committed Jun 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 config.ru
View
@@ -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 f9590ee

Please sign in to comment.