From bf6384e50e4ac7c730d35cf564c5867a2a73589f Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Thu, 12 Mar 2015 16:00:40 +0100 Subject: [PATCH] do not print backtraces in production --- lib/travis/api/app/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/travis/api/app/base.rb b/lib/travis/api/app/base.rb index 86b633f1..1f5f4570 100644 --- a/lib/travis/api/app/base.rb +++ b/lib/travis/api/app/base.rb @@ -39,7 +39,7 @@ class Travis::Api::App # Logging is set up by custom middleware disable :protection, :logging, :setup enable :raise_errors - # disable :dump_errors + disable :dump_errors register :subclass_tracker, :expose_pattern helpers :respond_with, :mime_types end @@ -48,6 +48,7 @@ class Travis::Api::App # We want error pages in development, but only # when we don't have an error handler specified set :show_exceptions, :after_handler + enable :dump_errors end end end