From f1478e907e15a4e6edf12bd0d9163c7ad191ff7c Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 25 Mar 2019 11:48:34 +1100 Subject: [PATCH] test: set logger level to error to reduce noise and warnings from semantic logger during tests --- spec/support/logging.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/logging.rb b/spec/support/logging.rb index 40dace91c..803517f35 100644 --- a/spec/support/logging.rb +++ b/spec/support/logging.rb @@ -2,4 +2,5 @@ require 'pact_broker/logging/default_formatter' FileUtils.mkdir_p("log") +SemanticLogger.default_level = :error SemanticLogger.add_appender(file_name: "log/test.log", formatter: PactBroker::Logging::DefaultFormatter.new)