@@ -328,23 +328,23 @@ func (m *Manager) StartWorkspace(ctx context.Context, req *api.StartWorkspaceReq
328
328
safePod , _ := log .RedactJSON (m )
329
329
330
330
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" )
332
332
return nil , status .Error (codes .AlreadyExists , "workspace instance already exists" )
333
333
}
334
334
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" )
336
336
return nil , err
337
337
}
338
338
339
339
// if we reach this point the pod is created
340
340
err = wait .PollImmediateWithContext (ctx , 100 * time .Millisecond , 7 * time .Minute , podRunning (m .Clientset , pod .Name , pod .Namespace ))
341
341
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" )
343
343
if err == wait .ErrWaitTimeout && isPodUnschedulable (m .Clientset , pod .Name , pod .Namespace ) {
344
344
// this could be an error due to a scale-up event
345
345
delErr := deleteWorkspacePodForce (m .Clientset , pod .Name , pod .Namespace )
346
346
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" )
348
348
return nil , xerrors .Errorf ("workspace pod never reached Running state: %w" , err )
349
349
}
350
350
0 commit comments