From dcdf5e1837e2bf5857dcf5321bb4605330b1c9f6 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 13 Sep 2023 22:11:42 +0100 Subject: [PATCH] fix(edge/jobs): clear logs [EE-5923] (#10291) --- api/http/handler/edgejobs/edgejob_tasklogs_clear.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/http/handler/edgejobs/edgejob_tasklogs_clear.go b/api/http/handler/edgejobs/edgejob_tasklogs_clear.go index 2fd6acf4f..5393efa4d 100644 --- a/api/http/handler/edgejobs/edgejob_tasklogs_clear.go +++ b/api/http/handler/edgejobs/edgejob_tasklogs_clear.go @@ -97,11 +97,6 @@ func (handler *Handler) clearEdgeJobTaskLogs(tx dataservices.DataStoreTx, edgeJo return httperror.InternalServerError("Unable to persist Edge job changes in the database", err) } - err = handler.FileService.ClearEdgeJobTaskLogs(strconv.Itoa(int(edgeJobID)), strconv.Itoa(int(endpointID))) - if err != nil { - return httperror.InternalServerError("Unable to clear log file from disk", err) - } - endpoint, err := tx.Endpoint().Endpoint(endpointID) if err != nil { return httperror.NotFound("Unable to retrieve environment from the database", err)