@@ -347,23 +347,23 @@ func (m *Manager) StartWorkspace(ctx context.Context, req *api.StartWorkspaceReq
347347safePod , _ := log .RedactJSON (m )
348348
349349if 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" )
351351return 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" )
355355return nil , err
356356}
357357
358358// if we reach this point the pod is created
359359err = wait .PollImmediateWithContext (ctx , 100 * time .Millisecond , 7 * time .Minute , podRunning (m .Clientset , pod .Name , pod .Namespace ))
360360if 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" )
362362if err == wait .ErrWaitTimeout && isPodUnschedulable (m .Clientset , pod .Name , pod .Namespace ) {
363363// this could be an error due to a scale-up event
364364delErr := deleteWorkspacePodForce (m .Clientset , pod .Name , pod .Namespace )
365365if 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" )
367367return nil , xerrors .Errorf ("workspace pod never reached Running state: %w" , err )
368368}
369369
0 commit comments