首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将Mongoid Gem更新到版本5问题的警告

将Mongoid Gem更新到版本5问题的警告
EN

Stack Overflow用户
提问于 2017-02-15 16:42:41
回答 1查看 174关注 0票数 0

我已经将mongoid gem从mongoid-4 on rails 4应用程序更新为5。我在重启应用时面临以下警告

代码语言:javascript
复制
W, [2017-02-15T13:59:49.356541 #14483]  WARN -- : MONGODB Unsupported client option 'max_retries'. It will be ignored.

W, [2017-02-15T13:59:49.356739 #14483]  WARN -- : MONGODB 
Unsupported client option 'retry_interval'. It will be ignored.

W, [2017-02-15T13:59:49.356877 #14483]  WARN -- : MONGODB Unsupported client option 'username'. It will be ignored.

如何更新Mongoid Yml以删除警告?

这也是当前的YML文件

代码语言:javascript
复制
staging:
    clients:
      default:
         database: chillr_api
         hosts:
            - localhost:27017
      options:
        read:
          mode: :nearest
    # In the test environment we lower the retries and retry interval to
    # low amounts for fast failures.
          max_retries: 1
          retry_interval: 0
          username: 'username'
          password: 'username'
EN

回答 1

Stack Overflow用户

发布于 2017-02-15 16:53:37

Okey.Seems max_retries和retry_interval是便携配置。由于在mogoid5中删除了Moped,因此可以从configuration .Yml示例中删除它

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42244407

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档