get piece tasks log
@@ -166,7 +166,7 @@ func (css *Server) GetPieceTasks(ctx context.Context, req *base.PieceTaskRequest
defer span.End()
span.SetAttributes(constants.AttributeGetPieceTasksRequest.String(req.String()))
span.SetAttributes(constants.AttributeTaskID.String(req.TaskId))
- logger.Infof("get piece tasks: %#v", req)
+ logger.Infof("get piece tasks: %s", req)
defer func() {
if r := recover(); r != nil {
err = dferrors.Newf(base.Code_UnknownError, "get task(%s) piece tasks encounter an panic: %v", req.TaskId, r)
@@ -180,7 +180,6 @@ func (css *Server) GetPieceTasks(ctx context.Context, req *base.PieceTaskRequest
}
}()
- logger.Infof("get piece tasks: %#v", req)
seedTask, err := css.service.GetSeedTask(req.TaskId)
if err != nil {
if task.IsTaskNotFound(err) {
