From dc836bc1825859aa6802848f3c493d17dc82358c Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 19 Nov 2022 02:41:17 -0500 Subject: pkg/atlas: Add startup log message --- pkg/atlas/server.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/atlas') diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go index fc7f9be..487d9b6 100644 --- a/pkg/atlas/server.go +++ b/pkg/atlas/server.go @@ -634,11 +634,13 @@ func (s *Server) Run(ctx context.Context) error { }() var hs []*http.Server + var as []string for _, a := range s.Addr { hs = append(hs, &http.Server{ Addr: a, Handler: s.Handler, }) + as = append(as, "http://"+a) } for _, a := range s.AddrTLS { hs = append(hs, &http.Server{ @@ -646,10 +648,12 @@ func (s *Server) Run(ctx context.Context) error { Handler: s.Handler, TLSConfig: s.TLSConfig, }) + as = append(as, "https://"+a) } if len(hs) == 0 { return fmt.Errorf("no listen addresses provided") } + s.Logger.Log().Msgf("starting server on %s", strings.Join(as, ", ")) errch := make(chan error, len(hs)) for _, h := range hs { -- cgit v1.2.3