diff --git a/internal/service/task.go b/internal/service/task.go index a8a0965..9f3eb2b 100644 --- a/internal/service/task.go +++ b/internal/service/task.go @@ -187,7 +187,8 @@ func (svc *TaskService) ExportTask(ctx context.Context, req *task.ExportTaskRequ defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - log.Error(ctx, "func", "ExportTask", "msg", "http request failed", "status", resp.StatusCode) + body, _ := io.ReadAll(resp.Body) + log.Error(ctx, "func", "ExportTask", "msg", "http request failed", "status", resp.StatusCode, "body", string(body)) return nil, "", fmt.Errorf("export service returned status: %d", resp.StatusCode) }