aboutsummaryrefslogtreecommitdiff
path: root/pkg/atlas
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-11-19 02:41:17 -0500
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-11-19 02:41:17 -0500
commitdc836bc1825859aa6802848f3c493d17dc82358c (patch)
tree860e91bc032e2c249bcbf83bcbd4ec2ee1429900 /pkg/atlas
parent3e2174311af30b3f113af8a467266661fc681c93 (diff)
downloadAtlas-dc836bc1825859aa6802848f3c493d17dc82358c.tar.gz
Atlas-dc836bc1825859aa6802848f3c493d17dc82358c.zip
pkg/atlas: Add startup log message
Diffstat (limited to 'pkg/atlas')
-rw-r--r--pkg/atlas/server.go4
1 files changed, 4 insertions, 0 deletions
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 {