Skip to content

Commit 5f7f371

Browse files
Merge pull request #91 from simplybusiness/change-default-to-info
VIVA-2846 - Change default log level to info
2 parents dde2f7c + 102aab2 commit 5f7f371

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/twiglet/logger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def initialize(
2222

2323
now = args.fetch(:now, -> { Time.now.utc })
2424
output = args.fetch(:output, $stdout)
25-
level = args.fetch(:level, DEBUG)
25+
level = args.fetch(:level, INFO)
2626
validation_schema = args.fetch(:validation_schema, DEFAULT_VALIDATION_SCHEMA)
2727

2828
raise 'Service name is mandatory' \

lib/twiglet/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Twiglet
4-
VERSION = '3.11.0'
4+
VERSION = '3.12.0'
55
end

test/logger_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
@logger = Twiglet::Logger.new(
2424
'petshop',
2525
now: @now,
26-
output: @buffer
26+
output: @buffer,
27+
level: Logger::DEBUG
2728
)
2829
end
2930

@@ -652,7 +653,8 @@
652653
'petshop',
653654
now: @now,
654655
output: @buffer,
655-
validation_schema: validation_schema
656+
validation_schema: validation_schema,
657+
level: Logger::DEBUG
656658
)
657659
end
658660

0 commit comments

Comments
 (0)