From 94da2220c789e1d4605276ae0b064b495710289c Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Wed, 28 Sep 2022 16:54:33 +0000 Subject: [PATCH] [ws-manager] Remove req logs --- components/ws-manager/pkg/manager/manager.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ws-manager/pkg/manager/manager.go b/components/ws-manager/pkg/manager/manager.go index 96232c053fcac1..96398011a7321a 100644 --- a/components/ws-manager/pkg/manager/manager.go +++ b/components/ws-manager/pkg/manager/manager.go @@ -328,23 +328,23 @@ func (m *Manager) StartWorkspace(ctx context.Context, req *api.StartWorkspaceReq safePod, _ := log.RedactJSON(m) if k8serr.IsAlreadyExists(err) { - clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists") + clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists") return nil, status.Error(codes.AlreadyExists, "workspace instance already exists") } - clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace") + clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace") return nil, err } // if we reach this point the pod is created err = wait.PollImmediateWithContext(ctx, 100*time.Millisecond, 7*time.Minute, podRunning(m.Clientset, pod.Name, pod.Namespace)) if err != nil { - clog.WithError(err).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to start workspace") + clog.WithError(err).WithField("pod", pod.Name).Warn("was unable to start workspace") if err == wait.ErrWaitTimeout && isPodUnschedulable(m.Clientset, pod.Name, pod.Namespace) { // this could be an error due to a scale-up event delErr := deleteWorkspacePodForce(m.Clientset, pod.Name, pod.Namespace) if delErr != nil { - clog.WithError(delErr).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to delete workspace pod") + clog.WithError(delErr).WithField("pod", pod.Name).Warn("was unable to delete workspace pod") return nil, xerrors.Errorf("workspace pod never reached Running state: %w", err) }