File tree 1 file changed +0
-4
lines changed
components/ws-manager/pkg/manager 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -78,25 +78,21 @@ func (p *WorkspaceReadyProbe) Run(ctx context.Context) WorkspaceProbeResult {
78
78
return WorkspaceProbeStopped
79
79
}
80
80
81
- span .LogKV ("event" , "probe start" )
82
81
resp , err := client .Get (p .readyURL )
83
82
if err != nil {
84
83
urlerr , ok := err .(* url.Error )
85
84
if ! ok || ! urlerr .Timeout () {
86
- span .LogKV ("response" , "error" )
87
85
log .WithError (err ).Debug ("got a non-timeout error during workspace probe" )
88
86
time .Sleep (p .RetryDelay )
89
87
continue
90
88
}
91
89
92
90
// we've timed out - do not log this as it would spam the logs for no good reason
93
- span .LogKV ("response" , "timeout" )
94
91
continue
95
92
}
96
93
resp .Body .Close ()
97
94
98
95
if resp .StatusCode != http .StatusOK {
99
- span .LogKV ("response" , resp .StatusCode )
100
96
log .WithField ("url" , p .readyURL ).WithField ("status" , resp .StatusCode ).Debug ("workspace did not respond to ready probe with OK status" )
101
97
time .Sleep (p .RetryDelay )
102
98
continue
You can’t perform that action at this time.
0 commit comments