befly 3.24.14 → 3.24.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -235,6 +235,15 @@ export class Befly {
|
|
|
235
235
|
Logger.info(`服务器监听地址: ${server.url}`);
|
|
236
236
|
Logger.info(`Mysql 数据库地址:${this.context.config.mysql.hostname}`);
|
|
237
237
|
Logger.info(`Redis 缓存地址:${this.context.config.redis.hostname}`);
|
|
238
|
+
try {
|
|
239
|
+
process.stdout.write(`${this.context.config.appName} 启动成功!\n`);
|
|
240
|
+
process.stdout.write(`服务器启动耗时: ${finalStartupTime}\n`);
|
|
241
|
+
process.stdout.write(`服务器监听地址: ${server.url}\n`);
|
|
242
|
+
process.stdout.write(`Mysql 数据库地址:${this.context.config.mysql.hostname}\n`);
|
|
243
|
+
process.stdout.write(`Redis 缓存地址:${this.context.config.redis.hostname}\n`);
|
|
244
|
+
} catch {
|
|
245
|
+
// ignore
|
|
246
|
+
}
|
|
238
247
|
// 注意:作为库代码,这里不注册 SIGINT/SIGTERM 处理器,也不调用 process.exit。
|
|
239
248
|
// 宿主应用应自行处理信号并决定退出策略(包括是否调用 server.stop / Connect.disconnect / Logger.flush)。
|
|
240
249
|
return server;
|