Skip to content

Commit e7e0795

Browse files
csweichelroboquat
authored andcommitted
[ws-manager] Remove req logs
1 parent 98afd3c commit e7e0795

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
@@ -328,23 +328,23 @@ func (m *Manager) StartWorkspace(ctx context.Context, req *api.StartWorkspaceReq
328328
safePod, _ := log.RedactJSON(m)
329329

330330
if k8serr.IsAlreadyExists(err) {
331-
clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists")
331+
clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace which already exists")
332332
return nil, status.Error(codes.AlreadyExists, "workspace instance already exists")
333333
}
334334

335-
clog.WithError(err).WithField("req", req).WithField("pod", string(safePod)).Warn("was unable to start workspace")
335+
clog.WithError(err).WithField("pod", string(safePod)).Warn("was unable to start workspace")
336336
return nil, err
337337
}
338338

339339
// if we reach this point the pod is created
340340
err = wait.PollImmediateWithContext(ctx, 100*time.Millisecond, 7*time.Minute, podRunning(m.Clientset, pod.Name, pod.Namespace))
341341
if err != nil {
342-
clog.WithError(err).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to start workspace")
342+
clog.WithError(err).WithField("pod", pod.Name).Warn("was unable to start workspace")
343343
if err == wait.ErrWaitTimeout && isPodUnschedulable(m.Clientset, pod.Name, pod.Namespace) {
344344
// this could be an error due to a scale-up event
345345
delErr := deleteWorkspacePodForce(m.Clientset, pod.Name, pod.Namespace)
346346
if delErr != nil {
347-
clog.WithError(delErr).WithField("req", req).WithField("pod", pod.Name).Warn("was unable to delete workspace pod")
347+
clog.WithError(delErr).WithField("pod", pod.Name).Warn("was unable to delete workspace pod")
348348
return nil, xerrors.Errorf("workspace pod never reached Running state: %w", err)
349349
}
350350

0 commit comments

Comments
 (0)