Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit773580c

Browse files
authored
fix: correct minor formatting issues in CLI (#6813)
* fix: remove excess newlines from server startup* Don't log benign closed pipe errors
1 parent42b3d90 commit773580c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎cli/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
484484
tunnelDone<-chanstruct{}=make(chanstruct{},1)
485485
)
486486
ifcfg.AccessURL.String()=="" {
487-
cliui.Infof(inv.Stderr,"Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL\n")
487+
cliui.Infof(inv.Stderr,"Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL")
488488
tunnel,err=devtunnel.New(ctx,logger.Named("devtunnel"),cfg.WgtunnelHost.String())
489489
iferr!=nil {
490490
returnxerrors.Errorf("create tunnel: %w",err)
@@ -531,7 +531,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
531531
}
532532

533533
// A newline is added before for visibility in terminal output.
534-
cliui.Infof(inv.Stdout,"\nView the Web UI: %s\n",cfg.AccessURL.String())
534+
cliui.Infof(inv.Stdout,"\nView the Web UI: %s",cfg.AccessURL.String())
535535

536536
// Used for zero-trust instance identity with Google Cloud.
537537
googleTokenValidator,err:=idtoken.NewValidator(ctx,option.WithoutAuthentication())

‎coderd/workspaceagents.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,11 @@ func (api *API) dialWorkspaceAgentTailnet(agentID uuid.UUID) (*codersdk.Workspac
774774
gofunc() {
775775
err:= (*api.TailnetCoordinator.Load()).ServeClient(serverConn,uuid.New(),agentID)
776776
iferr!=nil {
777-
api.Logger.Warn(ctx,"tailnet coordinator client error",slog.Error(err))
777+
// Sometimes, we get benign closed pipe errors when the server is
778+
// shutting down.
779+
ifapi.ctx.Err()==nil {
780+
api.Logger.Warn(ctx,"tailnet coordinator client error",slog.Error(err))
781+
}
778782
_=agentConn.Close()
779783
}
780784
}()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp