我有一个本地MongoDb数据库实例(通过从Windows命令行运行mongod创建),以及一个简单的控制台程序,该程序尝试使用MongoDb及其MongoDb接收器将字符串记录到该数据库:
var log = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.ColoredConsole()
.WriteTo.MongoDB("mongodb://localhost/mydb")
.CreateLogg
当我检查我的mongo分片数据库时,我发现在mongos log.It上有很多相同的错误,似乎数据库有一些错误:
Tue May 20 18:01:48.229 [conn11851] scoped connection to ts84_mongodb:27020,ts85_mongodb:27020,ts86_mongodb:27020 not being returned to the pool
Tue May 20 18:01:48.233 [conn11851] SyncClusterConnection connecting to [ts84_mongodb:27020]
Tue M