|
@@ -51,7 +51,8 @@ func MgoNewClient() *qmgo.Client {
|
|
if ok {
|
|
if ok {
|
|
commands = v.(bson.Raw)
|
|
commands = v.(bson.Raw)
|
|
}
|
|
}
|
|
- global.MONGO_LOG.Info("\n【MongoDB】[%.3fms] [%v] %v \n", float64(evt.Duration)/1e6, commands, evt.Reply)
|
|
|
|
|
|
+ //global.MONGO_LOG.Info("\n【MongoDB】[%.3fms] [%v] %v \n", float64(evt.Duration)/1e6, commands, evt.Reply)
|
|
|
|
+ global.MONGO_LOG.Info("\n【MongoDB】[%.3fms] [%v] \n", float64(evt.Duration)/1e6, commands)
|
|
},
|
|
},
|
|
Failed: func(_ context.Context, evt *event.CommandFailedEvent) {
|
|
Failed: func(_ context.Context, evt *event.CommandFailedEvent) {
|
|
//log.Printf("Command: %v Failure: %v\n",
|
|
//log.Printf("Command: %v Failure: %v\n",
|