Skip to content

Commit

Permalink
feat: 再给两行日志
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jun 3, 2024
1 parent 8d2e37d commit c616a5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export async function bootstrap(version: string): Promise<void> {
logger.info(`${files.files.length} files`)
try {
await cluster.syncFiles(files, configuration.sync)
logger.info('回收文件')
await cluster.storage.gc(files.files)
} catch (e) {
if (e instanceof HTTPError) {
Expand All @@ -55,6 +56,7 @@ export async function bootstrap(version: string): Promise<void> {
const server = cluster.setupExpress(proto === 'https' && !config.enableNginx)
let checkFileInterval: NodeJS.Timeout
try {
logger.info('请求上线')
await cluster.listen()
await cluster.enable()

Expand Down

0 comments on commit c616a5a

Please sign in to comment.