@@ -150,7 +150,6 @@ func (s IDEKind) String() string {
150
150
151
151
// Run serves as main entrypoint to the supervisor.
152
152
func Run (options ... RunOption ) {
153
- log .Info ("supervisor run" )
154
153
exitCode := 0
155
154
defer handleExit (& exitCode )
156
155
@@ -237,11 +236,9 @@ func Run(options ...RunOption) {
237
236
}
238
237
tokenService .provider [KindGit ] = []tokenProvider {NewGitTokenProvider (gitpodService , cfg .WorkspaceConfig , notificationService )}
239
238
240
- log .Info ("gitpodConfigService" )
241
239
gitpodConfigService := config .NewConfigService (cfg .RepoRoot + "/.gitpod.yml" , cstate .ContentReady (), log .Log )
242
240
go gitpodConfigService .Watch (ctx )
243
241
244
- log .Info ("starting ports manager" )
245
242
portMgmt := ports .NewManager (
246
243
createExposedPortsImpl (cfg , gitpodService ),
247
244
& ports.PollingServedPortsObserver {
@@ -252,7 +249,6 @@ func Run(options ...RunOption) {
252
249
internalPorts ... ,
253
250
)
254
251
255
- log .Info ("finished ports manager" )
256
252
if opts .RunGP {
257
253
cstate .MarkContentReady (csapi .WorkspaceInitFromOther )
258
254
} else {
@@ -261,8 +257,6 @@ func Run(options ...RunOption) {
261
257
go analyseConfigChanges (ctx , cfg , analytics , gitpodConfigService , gitpodService )
262
258
}
263
259
264
- log .Info ("termMux" )
265
-
266
260
termMux := terminal .NewMux ()
267
261
termMuxSrv := terminal .NewMuxTerminalService (termMux )
268
262
termMuxSrv .DefaultWorkdir = cfg .RepoRoot
@@ -284,8 +278,6 @@ func Run(options ...RunOption) {
284
278
Gid : gitpodGID ,
285
279
}
286
280
287
- log .Info ("taskManager" )
288
-
289
281
taskManager := newTasksManager (cfg , termMuxSrv , cstate , nil )
290
282
291
283
apiServices := []RegisterableService {
@@ -305,14 +297,12 @@ func Run(options ...RunOption) {
305
297
}
306
298
apiServices = append (apiServices , additionalServices ... )
307
299
308
- log .Info ("installDotfiles" )
309
300
if ! cfg .isHeadless () {
310
301
// We need to checkout dotfiles first, because they may be changing the path which affects the IDE.
311
302
// TODO(cw): provide better feedback if the IDE start fails because of the dotfiles (provide any feedback at all).
312
303
installDotfiles (ctx , cfg , tokenService , childProcEnvvars )
313
304
}
314
305
315
- log .Info ("ideWG" )
316
306
var ideWG sync.WaitGroup
317
307
ideWG .Add (1 )
318
308
go startAndWatchIDE (ctx , cfg , & cfg .IDE , childProcEnvvars , & ideWG , cstate , ideReady , WebIDE )
@@ -1312,7 +1302,6 @@ func startSSHServer(ctx context.Context, cfg *Config, wg *sync.WaitGroup, childP
1312
1302
}
1313
1303
1314
1304
func startContentInit (ctx context.Context , cfg * Config , wg * sync.WaitGroup , cst ContentState ) {
1315
- log .Info ("starting content init" )
1316
1305
defer wg .Done ()
1317
1306
defer log .Info ("supervisor: workspace content available" )
1318
1307
@@ -1338,8 +1327,6 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1338
1327
log .Info ("Detected content.json in /.workspace folder, assuming PVC feature enabled" )
1339
1328
}
1340
1329
1341
- log .Infof ("waiting for content.json to be available at %s" , fn )
1342
-
1343
1330
var contentFile * os.File
1344
1331
1345
1332
contentFile , err = os .Open (fn )
@@ -1354,7 +1341,6 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1354
1341
// TODO: rewrite using fsnotify
1355
1342
t := time .NewTicker (100 * time .Millisecond )
1356
1343
for range t .C {
1357
- log .Infof ("waiting for %s to be available" , fnReady )
1358
1344
b , err := os .ReadFile (fnReady )
1359
1345
if err != nil {
1360
1346
if ! os .IsNotExist (err ) {
@@ -1382,14 +1368,12 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
1382
1368
1383
1369
defer contentFile .Close ()
1384
1370
1385
- log .Info ("supervisor: workspace content available" )
1386
1371
var src csapi.WorkspaceInitSource
1387
1372
src , err = executor .Execute (ctx , "/workspace" , contentFile , true )
1388
1373
if err != nil {
1389
1374
return
1390
1375
}
1391
1376
1392
- log .Infof ("supervisor: remove %s" , fn )
1393
1377
err = os .Remove (fn )
1394
1378
if os .IsNotExist (err ) {
1395
1379
// file is gone - we're good
0 commit comments