Skip to content

Commit

Permalink
Merge pull request #91 from simplybusiness/change-default-to-info
Browse files Browse the repository at this point in the history
VIVA-2846 - Change default log level to info
  • Loading branch information
iansimplybusiness authored Aug 9, 2024
2 parents dde2f7c + 102aab2 commit 5f7f371
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/twiglet/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def initialize(

now = args.fetch(:now, -> { Time.now.utc })
output = args.fetch(:output, $stdout)
level = args.fetch(:level, DEBUG)
level = args.fetch(:level, INFO)
validation_schema = args.fetch(:validation_schema, DEFAULT_VALIDATION_SCHEMA)

raise 'Service name is mandatory' \
Expand Down
2 changes: 1 addition & 1 deletion lib/twiglet/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Twiglet
VERSION = '3.11.0'
VERSION = '3.12.0'
end
6 changes: 4 additions & 2 deletions test/logger_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
@logger = Twiglet::Logger.new(
'petshop',
now: @now,
output: @buffer
output: @buffer,
level: Logger::DEBUG
)
end

Expand Down Expand Up @@ -652,7 +653,8 @@
'petshop',
now: @now,
output: @buffer,
validation_schema: validation_schema
validation_schema: validation_schema,
level: Logger::DEBUG
)
end

Expand Down

0 comments on commit 5f7f371

Please sign in to comment.