Skip to content

Commit d428c05

Browse files
authored
chore: move log output message before logs begin streaming (coder#12836)
1 parent 7c1d10b commit d428c05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,9 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
792792
return err
793793
}
794794

795+
// This should be output before the logs start streaming.
796+
cliui.Infof(inv.Stdout, "\n==> Logs will stream in below (press ctrl+c to gracefully exit):")
797+
795798
if vals.Telemetry.Enable {
796799
gitAuth := make([]telemetry.GitAuth, 0)
797800
// TODO:
@@ -1025,8 +1028,6 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
10251028
}
10261029
}()
10271030

1028-
cliui.Infof(inv.Stdout, "\n==> Logs will stream in below (press ctrl+c to gracefully exit):")
1029-
10301031
// Updates the systemd status from activating to activated.
10311032
_, err = daemon.SdNotify(false, daemon.SdNotifyReady)
10321033
if err != nil {

0 commit comments

Comments
 (0)