Skip to content

Commit

Permalink
Easier debugging for the fake copycopter app
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Sep 9, 2011
1 parent 4e343fc commit 556bb30
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/support/fake_copycopter_app.rb
Expand Up @@ -3,9 +3,15 @@
require 'thin'

class FakeCopycopterApp < Sinatra::Base
disable :show_exceptions

def self.start
Thread.new do
Thin::Logging.silent = true
if ENV['DEBUG']
Thin::Logging.debug = true
else
Thin::Logging.silent = true
end
Rack::Handler::Thin.run(self, :Port => port)
end
end
Expand Down

0 comments on commit 556bb30

Please sign in to comment.