Log the api server address on startup

This commit is contained in:
Melon 2023-07-10 18:02:48 +01:00
parent 5f70d07f90
commit 2f5e74d3f4
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -88,7 +88,8 @@ func normalLoad(conf startUpConfig, wd string) {
log.Fatal("[Orchid] Error:", err)
}
srv := servers.NewApiServer(conf.Listen, db, mJwtVerify, conf.Domains)
utils.RunBackgroundHttp("API", srv)
log.Printf("[API] Starting API server on: '%s'\n", srv.Addr)
go utils.RunBackgroundHttp("API", srv)
// Wait for exit signal
sc := make(chan os.Signal, 1)