Skip to content

Commit

Permalink
logging fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Jun 4, 2009
1 parent 4a290b8 commit f9590ee
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') 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) $stdout.reopen(log)
STDERR.reopen(log) $stderr.reopen(log)


run Sinatra::Application run Sinatra::Application

0 comments on commit f9590ee

Please sign in to comment.