如何解决如何使 clojure 服务器中的 mongodb 日志静音?
我有一个连接到 mongodb 数据库的 clojure 服务器。但是,在运行 lein run 来运行服务器时,我每秒都在不断地记录日志:
2020-12-19 08:11:20,959 [cluster-ClusterId{value='5fdc80696c66ce322e28f620',description='null'}-cluster0-shard-00-00.ww5gh.mongodb.net:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to {type=REPLICA_SET,servers=[{address=cluster0-shard-00-02.ww5gh.mongodb.net:27017,type=REPLICA_SET_PRIMARY,TagSet{[Tag{name='region',value='US_EAST_1'},Tag{name='nodeType',value='ELECTABLE'},Tag{name='workloadType',value='OPERATIONAL'},Tag{name='provider',value='AWS'}]},roundTripTime=361.2 ms,state=CONNECTED},{address=cluster0-shard-00-01.ww5gh.mongodb.net:27017,type=REPLICA_SET_SECONDARY,roundTripTime=346.5 ms,{address=cluster0-shard-00-00.ww5gh.mongodb.net:27017,roundTripTime=309.2 ms,state=CONNECTED}]
2020-12-19 08:11:24,619 [cluster-ClusterId{value='5fdc80696c66ce322e28f620',description='null'}-cluster0-shard-00-01.ww5gh.mongodb.net:27017] DEBUG org.mongodb.driver.cluster - Checking status of cluster0-shard-00-01.ww5gh.mongodb.net:27017
2020-12-19 08:11:24,description='null'}-cluster0-shard-00-01.ww5gh.mongodb.net:27017] DEBUG org.mongodb.driver.protocol.command - Sending command '{ "ismaster" : 1,"$db" : "admin","$clusterTime" : { "clusterTime" : { "$timestamp" : { "t" : 1608345680,"i" : 1 } },"signature" : { "hash" : { "$binary" : { "base64" : "QTGEV9rRhzEgwqESfvQ9RgQBs24=","subType" : "00" } },"keyId" : 6852325144845615106 } } }' with request id 705 to database admin on connection [connectionId{localValue:270,serverValue:7517}] to server cluster0-shard-00-01.ww5gh.mongodb.net:27017
2020-12-19 08:11:24,965 [cluster-ClusterId{value='5fdc80696c66ce322e28f620',description='null'}-cluster0-shard-00-01.ww5gh.mongodb.net:27017] DEBUG org.mongodb.driver.protocol.command - Execution of command with request id 705 completed successfully in 345.81 ms on connection [connectionId{localValue:270,description='null'}-cluster0-shard-00-01.ww5gh.mongodb.net:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=cluster0-shard-00-01.ww5gh.mongodb.net:27017,state=CONNECTED,ok=true,version=ServerVersion{versionList=[4,2,11]},minWireVersion=0,maxWireVersion=8,maxDocumentSize=16777216,logicalSessionTimeoutMinutes=30,roundTripTimeNanos=346429128,setName='Cluster0-shard-0',canonicalAddress=cluster0-shard-00-01.ww5gh.mongodb.net:27017,hosts=[cluster0-shard-00-00.ww5gh.mongodb.net:27017,cluster0-shard-00-01.ww5gh.mongodb.net:27017,cluster0-shard-00-02.ww5gh.mongodb.net:27017],passives=[],arbiters=[],primary='cluster0-shard-00-02.ww5gh.mongodb.net:27017',tagSet=TagSet{[Tag{name='provider',value='AWS'},Tag{name='region',value='OPERATIONAL'}]},electionId=null,setVersion=5,lastWriteDate=Sat Dec 19 08:11:24 IST 2020,lastUpdateTimeNanos=100313369799522}
停止所有这些日志记录的最简单方法是什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。