【发布时间】:2021-02-15 22:01:36
【问题描述】:
我刚刚升级到 mongodb 4.4.1,控制台每隔一秒就会充斥着这些消息:
D, [2020-11-03T03:28:32.885772 #24798] DEBUG -- : MONGODB | There was a change in the members of the 'Single' topology.
D, [2020-11-03T03:28:42.875739 #24798] DEBUG -- : MONGODB | Server description for localhost:27017 changed from 'standalone' to 'standalone' [awaited].
D, [2020-11-03T03:28:42.876668 #24798] DEBUG -- : MONGODB | There was a change in the members of the 'Single' topology.
D, [2020-11-03T03:28:42.888517 #24798] DEBUG -- : MONGODB | Server description for localhost:27017 changed from 'standalone' to 'standalone'.
任何人都知道为什么会这样,如果它很糟糕,以及如何停止?
【问题讨论】:
-
将日志级别设置为信息。
-
感谢回复,但我需要debug,想知道是否可以在mongo级别禁用这个,就像每秒一样
-
你可以在这里看到它enter link description here
-
谢谢,我不想禁用所有 mongo 日志消息,只是每 1 秒拓扑更改消息
标签: mongodb