Skip to content
Browse files

fix logging

  • Loading branch information...
1 parent dfce3c3 commit c029ef67529e2a1c11015ffda84d13cf6acb7ec3 @zapnap zapnap committed Jun 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 config.ru
View
4 config.ru
@@ -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.
Something went wrong with that request. Please try again.