befly 3.24.15 → 3.24.17

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.
Files changed (2) hide show
  1. package/index.js +9 -0
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.24.15",
3
+ "version": "3.24.17",
4
4
  "gitHead": "49c39d36695036e85fc64083cc43c1652fff96cb",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",