Skip to content

Commit

Permalink
test: set logger level to error to reduce noise and warnings from sem…
Browse files Browse the repository at this point in the history
…antic logger during tests
  • Loading branch information
bethesque committed Mar 31, 2019
1 parent de756e0 commit f1478e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f1478e9

Please sign in to comment.