befly 3.17.3 → 3.17.4

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/lib/connect.js +3 -7
  2. package/package.json +2 -2
package/lib/connect.js CHANGED
@@ -48,7 +48,7 @@ export class Connect {
48
48
  this.mysqlClient = new SQL(sqlConfig);
49
49
 
50
50
  await this.mysqlClient`SELECT 1`;
51
- Logger.info("Mysql 连接成功");
51
+ Logger.info(`Mysql 连接成功 (${config.hostname})`);
52
52
  } catch (error) {
53
53
  await this.mysqlClient?.close();
54
54
  this.mysqlClient = null;
@@ -83,16 +83,12 @@ export class Connect {
83
83
  this.redisClient = new RedisClient(redisUrl);
84
84
  // Called when successfully connected to Redis server
85
85
  this.redisClient.onconnect = () => {
86
- Logger.info("Redis 连接成功");
86
+ Logger.info(`Redis 连接成功 (${config.hostname})`);
87
87
  };
88
88
 
89
89
  // Called when disconnected from Redis server
90
90
  this.redisClient.onclose = (error) => {
91
- Logger.warn("Redis 断开连接", {
92
- subsystem: "redis",
93
- operation: "onclose",
94
- cause: error
95
- });
91
+ Logger.warn("Redis 断开连接");
96
92
  };
97
93
  } catch (error) {
98
94
  await this.redisClient?.close();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.17.3",
4
- "gitHead": "91bea63e1267eeaa8d0fd152686eb122ce30a4b1",
3
+ "version": "3.17.4",
4
+ "gitHead": "bb2ab272371940036eaa305495c90d29b23fedc5",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
7
7
  "keywords": [