mirror of
https://github.com/1f349/violet.git
synced 2024-12-03 16:51:40 +00:00
Correct logged listening addresses
This commit is contained in:
parent
3e86b91ec3
commit
d7b7721378
@ -177,7 +177,7 @@ func (s *serveCmd) Execute(_ context.Context, _ *flag.FlagSet, _ ...interface{})
|
||||
srvApi = api.NewApiServer(srvConf, allCompilables, promRegistry)
|
||||
srvApi.SetKeepAlivesEnabled(false)
|
||||
l := logger.Logger.With("server", "API")
|
||||
l.Info("Starting server", "addr", srvApi.Addr)
|
||||
l.Info("Starting server", "addr", config.Listen.Api)
|
||||
go utils.RunBackgroundHttp(l, srvApi, lnApi)
|
||||
}
|
||||
if config.Listen.Http != "" {
|
||||
@ -189,7 +189,7 @@ func (s *serveCmd) Execute(_ context.Context, _ *flag.FlagSet, _ ...interface{})
|
||||
srvHttp = servers.NewHttpServer(uint16(httpsPort), srvConf, promRegistry)
|
||||
srvHttp.SetKeepAlivesEnabled(false)
|
||||
l := logger.Logger.With("server", "HTTP")
|
||||
l.Info("Starting server", "addr", srvHttp.Addr)
|
||||
l.Info("Starting server", "addr", config.Listen.Http)
|
||||
go utils.RunBackgroundHttp(l, srvHttp, lnHttp)
|
||||
}
|
||||
if config.Listen.Https != "" {
|
||||
@ -201,7 +201,7 @@ func (s *serveCmd) Execute(_ context.Context, _ *flag.FlagSet, _ ...interface{})
|
||||
srvHttps = servers.NewHttpsServer(srvConf, promRegistry)
|
||||
srvHttps.SetKeepAlivesEnabled(false)
|
||||
l := logger.Logger.With("server", "HTTPS")
|
||||
l.Info("Starting server", "addr", srvHttps.Addr)
|
||||
l.Info("Starting server", "addr", config.Listen.Https)
|
||||
go utils.RunBackgroundHttps(l, srvHttps, lnHttps)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user