浏览代码

chore: log listen address (#3428)

Jason Rasmussen 2 年之前
父节点
当前提交
f3edf43158
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      server/src/immich/main.ts
  2. 1 1
      server/src/microservices/main.ts

+ 1 - 1
server/src/immich/main.ts

@@ -31,5 +31,5 @@ export async function bootstrap() {
   const server = await app.listen(port);
   server.requestTimeout = 30 * 60 * 1000;
 
-  logger.log(`Immich Server is listening on ${port} [v${SERVER_VERSION}] [${envName}] `);
+  logger.log(`Immich Server is listening on ${await app.getUrl()} [v${SERVER_VERSION}] [${envName}] `);
 }

+ 1 - 1
server/src/microservices/main.ts

@@ -17,5 +17,5 @@ export async function bootstrap() {
   await app.get(AppService).init();
   await app.listen(port);
 
-  logger.log(`Immich Microservices is listening on ${port} [v${SERVER_VERSION}] [${envName}] `);
+  logger.log(`Immich Microservices is listening on ${await app.getUrl()} [v${SERVER_VERSION}] [${envName}] `);
 }