From 36d6ecd873f01d7d52cd2753867f0d5278a15549 Mon Sep 17 00:00:00 2001 From: SoXX Date: Sat, 26 Oct 2024 20:36:43 +0200 Subject: [PATCH] fix: Remove redundant error logging and tracing in TaskStart function --- pkg/plug/grpc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/plug/grpc.go b/pkg/plug/grpc.go index fd45029..2099747 100644 --- a/pkg/plug/grpc.go +++ b/pkg/plug/grpc.go @@ -144,9 +144,7 @@ func (s *server) TaskStart(ctx context.Context, creation *gRPC.PlugTaskCreation) } go func() { - log.WithContext(taskCtx).WithError(err).WithField("task_id", id).Error("Failed to get Gorm client") - span.RecordError(err) - span.SetStatus(codes.Error, err.Error()) + var err error taskSummery, err := algorithm(taskCtx, s.plugInterface, userSource, anthroveUserFavCount, creation.DeepScrape, creation.ApiKey) if err != nil {