Update logger for running for API server

This commit is contained in:
Melon 2024-06-04 20:07:20 +01:00
parent e92207172e
commit 01f15e27a3
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -90,7 +90,7 @@ func normalLoad(conf startUpConfig, wd string) {
}
srv := servers.NewApiServer(conf.Listen, db, mJwtVerify, conf.Domains)
logger.Logger.Info("Starting API server", "listen", srv.Addr)
go utils.RunBackgroundHttp("API", srv)
go utils.RunBackgroundHttp(logger.Logger, srv)
exit_reload.ExitReload("Violet", func() {}, func() {
// stop renewal service and api server