befly 3.76.6 → 3.76.7
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/Befly.js +9 -2
- package/package.json +1 -1
package/Befly.js
CHANGED
|
@@ -131,9 +131,16 @@ export class Befly {
|
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
this.started = true;
|
|
134
|
+
const startupTime = calcPerfTime(serverStartTime);
|
|
134
135
|
Logger.info(`启动 Bun.serve 监听完成,耗时 ${calcPerfTime(listenStartTime)}`);
|
|
135
|
-
Logger.info(`启动总耗时 ${
|
|
136
|
-
Logger.info(`${this.context.config.appName} 启动成功`, { url: this.server.url, startupTime:
|
|
136
|
+
Logger.info(`启动总耗时 ${startupTime}`);
|
|
137
|
+
Logger.info(`${this.context.config.appName} 启动成功`, { url: this.server.url, startupTime: startupTime });
|
|
138
|
+
|
|
139
|
+
process.stdout.write(`${this.context.config.appName} 启动成功\n`);
|
|
140
|
+
process.stdout.write(`启动耗时: ${startupTime}\n`);
|
|
141
|
+
process.stdout.write(`监听地址: ${this.server.url}\n`);
|
|
142
|
+
process.stdout.write(`Mysql 数据库地址: ${this.context.config.mysql.hostname}:${this.context.config.mysql.port}\n`);
|
|
143
|
+
process.stdout.write(`Redis 缓存地址: ${this.context.config.redis.hostname}:${this.context.config.redis.port}\n`);
|
|
137
144
|
return this.server;
|
|
138
145
|
} catch (error) {
|
|
139
146
|
Logger.error("项目启动失败", error);
|