Skip to content

Commit 2e66269

Browse files
csweichelroboquat
authored andcommitted
[ws-manager] Remove req logs
1 parent 2dcfe3f commit 2e66269

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/ws-manager/pkg/manager/manager.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,23 +347,23 @@ func (m *Manager) StartWorkspace(ctx context.Context, req *api.StartWorkspaceReq
347347
safePod, _ := log.RedactJSON(m)
348348

349349
if k8serr.IsAlreadyExists(err) {
350-
clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists")
350+
clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists")
351351
return nil, status.Error(codes.AlreadyExists, "workspace instance already exists")
352352
}
353353

354-
clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace")
354+
clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace")
355355
return nil, err
356356
}
357357

358358
// if we reach this point the pod is created
359359
err = wait.PollImmediateWithContext(ctx, 100*time.Millisecond, 7*time.Minute, podRunning(m.Clientset, pod.Name, pod.Namespace))
360360
if err != nil {
361-
clog.WithError(err).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to start workspace")
361+
clog.WithError(err).WithField("pod", pod.Name).Warn("was unable to start workspace")
362362
if err == wait.ErrWaitTimeout && isPodUnschedulable(m.Clientset, pod.Name, pod.Namespace) {
363363
// this could be an error due to a scale-up event
364364
delErr := deleteWorkspacePodForce(m.Clientset, pod.Name, pod.Namespace)
365365
if delErr != nil {
366-
clog.WithError(delErr).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to delete workspace pod")
366+
clog.WithError(delErr).WithField("pod", pod.Name).Warn("was unable to delete workspace pod")
367367
return nil, xerrors.Errorf("workspace pod never reached Running state: %w", err)
368368
}
369369

0 commit comments

Comments
 (0)