Skip to content

Commit 4b8c57a

Browse files
committed
[supervisor] add some additional log to help with content init
1 parent b7e8a0a commit 4b8c57a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/supervisor/pkg/supervisor/supervisor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,8 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
13401340
return
13411341
}
13421342

1343+
log.Infof("%s does not exist, going to wait for %s", fn, fnReady)
1344+
13431345
// If there is no content descriptor the content must have come from somewhere (i.e. a layer or ws-daemon).
13441346
// Let's wait for that to happen.
13451347
// TODO: rewrite using fsnotify
@@ -1372,6 +1374,7 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
13721374

13731375
defer contentFile.Close()
13741376

1377+
log.Info("supervisor: running content service executor with content descriptor")
13751378
var src csapi.WorkspaceInitSource
13761379
src, err = executor.Execute(ctx, "/workspace", contentFile, true)
13771380
if err != nil {

0 commit comments

Comments
 (0)