feat(startup): print service banner after listener ready

This commit is contained in:
ryan
2026-07-13 15:56:30 +08:00
parent 9cac25696a
commit 08fac67f2a
10 changed files with 198 additions and 13 deletions
+3 -1
View File
@@ -16,6 +16,8 @@ var apiCmd = &cobra.Command{
Run: func(_ *cobra.Command, _ []string) {
bootstrap.RegisterAPI()
runBootstrap(bootstrap.Options{API: true})
router.Serve()
router.Serve(func() {
printStartupBanner(startupState{mode: "API", relationalDB: latestMigrationState.relationalDB, clickHouseDB: latestMigrationState.clickHouseDB, listensForHTTP: true})
})
},
}