Skip to content

Commit 5458a49

Browse files
akosyakovroboquat
authored andcommitted
[local-app] don't swallow supervisor client error
1 parent c9a6cf3 commit 5458a49

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

components/local-app/main.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ func main() {
9393
},
9494
},
9595
&cli.BoolFlag{
96-
Name: "verbose",
96+
Name: "verbose",
97+
EnvVars: []string{
98+
"GITPOD_LCA_VERBOSE",
99+
},
97100
Value: false,
98101
},
99102
},

components/local-app/pkg/bastion/bastion.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (b *Bastion) handleUpdate(ur *WorkspaceUpdateRequest) {
328328
var err error
329329
ws.supervisorClient, err = grpc.Dial(ws.supervisorListener.LocalAddr, grpc.WithInsecure())
330330
if err != nil {
331-
logrus.WithError(err).WithField("workspace", ws.WorkspaceID).Print("error connecting to supervisor")
331+
logrus.WithError(err).WithField("workspace", ws.WorkspaceID).Error("error connecting to supervisor")
332332
} else {
333333
go func() {
334334
<-ws.ctx.Done()

0 commit comments

Comments
 (0)