Skip to content

Commit 7dcfb5f

Browse files
authored
Add logger gem as dependency for Ruby 3.5 (#4589)
logger gem was marked as bundled gem for Ruby 3.5. Therefore, it will not work on Ruby 3.5 unless it is added as a dependency. Ref. ruby/ruby@d7e558e (Currently, this patch will suppress `warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.` message.) Similar with GH-4411 Signed-off-by: Watson <watson1978@gmail.com>
1 parent e184fd2 commit 7dcfb5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fluentd.gemspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Gem::Specification.new do |gem|
3939
gem.add_runtime_dependency("csv", ["~> 3.2"])
4040
gem.add_runtime_dependency("drb", ["~> 2.2"])
4141

42+
# gems that aren't default gems as of Ruby 3.5
43+
gem.add_runtime_dependency("logger", ["~> 1.6"])
44+
4245
# build gem for a certain platform. see also Rakefile
4346
fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s
4447
gem.platform = fake_platform unless fake_platform.empty?

0 commit comments

Comments
 (0)