cgserver 6.4.14 → 6.4.15

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.
@@ -76,14 +76,18 @@ class MongoManager {
76
76
  }
77
77
  onConnect() {
78
78
  this._mongo_init_succ = true;
79
- Log_1.GLog.info("mogo has connected!");
79
+ Log_1.GLog.info("mongo has connected!");
80
80
  }
81
81
  onEnd() {
82
82
  this._mongo_init_succ = false;
83
- Log_1.GLog.info("mogo has ended!");
83
+ Log_1.GLog.error("mongo has ended!", true);
84
+ Log_1.GLog.info("mongo try reconnect", true);
85
+ this.init();
84
86
  }
85
87
  onError(err) {
86
- Log_1.GLog.info("Error " + err);
88
+ Log_1.GLog.error("Error " + err);
89
+ Log_1.GLog.info("mongo try reconnect", true);
90
+ this.init();
87
91
  }
88
92
  async getAutoIds(key) {
89
93
  if (!this._mongo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.4.14",
3
+ "version": "6.4.15",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",