Add logs if failed to get object
This commit is contained in:
parent
bfb9ed1d83
commit
533806893f
@ -87,12 +87,13 @@ func (s *objectSync) handleMessage(ctx context.Context, senderId string, msg *sp
|
|||||||
return spacesyncproto.ErrSpaceIsDeleted
|
return spacesyncproto.ErrSpaceIsDeleted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.With(zap.String("objectId", msg.ObjectId), zap.String("replyId", msg.ReplyId)).DebugCtx(ctx, "handling message")
|
log.DebugCtx(ctx, "handling message")
|
||||||
obj, err := s.objectGetter.GetObject(ctx, msg.ObjectId)
|
obj, err := s.objectGetter.GetObject(ctx, msg.ObjectId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.DebugCtx(ctx, "failed to get object")
|
||||||
respErr := s.sendErrorResponse(ctx, msg, senderId)
|
respErr := s.sendErrorResponse(ctx, msg, senderId)
|
||||||
if respErr != nil {
|
if respErr != nil {
|
||||||
log.Debug("failed to send error response", zap.Error(respErr))
|
log.DebugCtx(ctx, "failed to send error response", zap.Error(respErr))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user