From d59c7e5512617ada0e126f5a09c15a884f96b235 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 9 Mar 2018 11:42:21 +1100 Subject: [PATCH] feat: disable sinatra dump_errors Otherwise we get duplicated logging for UI errors. --- lib/pact_broker/ui/controllers/base_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pact_broker/ui/controllers/base_controller.rb b/lib/pact_broker/ui/controllers/base_controller.rb index 6333afab8..860d089a2 100644 --- a/lib/pact_broker/ui/controllers/base_controller.rb +++ b/lib/pact_broker/ui/controllers/base_controller.rb @@ -9,8 +9,9 @@ class Base < Padrino::Application set :root, File.join(File.dirname(__FILE__), '..') set :show_exceptions, ENV['RACK_ENV'] != 'production' + set :dump_errors, false # The padrino logger logs these for us. If this is enabled we get duplicate logging. end end end -end \ No newline at end of file +end