控制台总输出这东西,还超多,几秒就输出一次,烦死
2017-10-14 16:08:42.833 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017 2017-10-14 16:08:42.835 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=9.6 ms, state=CONNECTED}] 2017-10-14 16:08:42.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=8.9 ms, state=CONNECTED}] 2017-10-14 16:08:52.822 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7657', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017 2017-10-14 16:08:52.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017 2017-10-14 16:08:52.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017 2017-10-14 16:08:52.902 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=20.0 ms, state=CONNECTED}] 2017-10-14 16:08:52.902 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7657', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=27.5 ms, state=CONNECTED}] 2017-10-14 16:08:52.903 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=21.1 ms, state=CONNECTED}] c2017-10-14 16:08:58.357 [DefaultQuartzScheduler_QuartzSchedulerThread] DEBUG o.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers
解决方法:
Logback的xml中,增加 <logger name="org.mongodb.driver.cluster" level="ERROR" /> 即可。
别的不知道怎么弄。
|