Skip to content

Commit c5cf4de

Browse files
M-ElsaeedMohammed Ehab
and
Mohammed Ehab
authored
Don't Ignore Custom Formatters + Version Bump to 3.1.2 (#49)
* Fix Formatter Override Being Ignored. --------- Co-authored-by: Mohammed Ehab <[email protected]>
1 parent ff6b60a commit c5cf4de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

RELEASE.CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Jun 6, 2025
2+
`3.1.2`
3+
- Don't Ignore Custom Formatters. ([#49](https://github.com/aws/aws-lambda-ruby-runtime-interface-client/pull/49))
4+
15
### Jun 5, 2025
26
`3.1.1`
37
- Fix Logger Formatting override being ignored. ([#47](https://github.com/aws/aws-lambda-ruby-runtime-interface-client/pull/47))

lib/aws_lambda_ric/logger_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def initialize(logdev, shift_age = 0, shift_size = 1048576, level: 'debug',
99
# use unpatched constructor if logdev is a filename or an IO Object other than $stdout or $stderr
1010
if !logdev || logdev == $stdout || logdev == $stderr
1111
logdev_lambda_override = AwsLambdaRIC::TelemetryLogger.telemetry_log_sink
12-
formatter_override = LogFormatter.new
12+
formatter_override = formatter_override || LogFormatter.new
1313
end
1414

1515
super(logdev_lambda_override, shift_age, shift_size, level: level, progname: progname,

lib/aws_lambda_ric/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 AwsLambdaRIC
4-
VERSION = '3.1.1'
4+
VERSION = '3.1.2'
55
end

0 commit comments

Comments
 (0)