Add logger gem dependency for Ruby 4.0

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Ruby Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Ruby 4.0 extracts the logger gem as a bundled gem. Therefore, the mongo gem must add the logger gem to its gemspec in order to support Ruby 4.0.

      Otherwise, the following warning will be raised:

      ```
      /opt/hostedtoolcache/Ruby/4.0.0/x64/lib/ruby/gems/4.0.0/gems/mongo-2.22.0/lib/mongo.rb:21: warning: logger used to be loaded from the standard library, but is not part of the default gems since Ruby 4.0.0.
      You can add logger to your Gemfile or gemspec to fix this error.
      ````
      References:

       

       

            Assignee:
            Unassigned
            Reporter:
            Masato Ikeda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: