mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化消息队列服务日志
This commit is contained in:
@@ -398,8 +398,7 @@ func (mp *MongoPersist) PersistIndex(topic string, customerId string, index uint
|
|||||||
|
|
||||||
ctx, cancel := s.GetDefaultContext()
|
ctx, cancel := s.GetDefaultContext()
|
||||||
defer cancel()
|
defer cancel()
|
||||||
ret, err := s.Collection(mp.dbName, CustomerCollectName).UpdateOne(ctx, condition, updata, UpdateOptionsOpts...)
|
_, err := s.Collection(mp.dbName, CustomerCollectName).UpdateOne(ctx, condition, updata, UpdateOptionsOpts...)
|
||||||
fmt.Println(ret)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.SError("PersistIndex fail :", err.Error())
|
log.SError("PersistIndex fail :", err.Error())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user