mm_monitor 1.0.5 → 1.0.6
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 +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ Monitor.prototype.loop = async function() {
|
|
|
107
107
|
$.sleep(1000);
|
|
108
108
|
bl = await this.checkServer(o.url);
|
|
109
109
|
if (!bl) {
|
|
110
|
-
|
|
110
|
+
$.log.debug("发生异常", (new Date()).toStr('yyyy-MM-dd hh:mm:ss'), o);
|
|
111
111
|
if (!this.sended) {
|
|
112
112
|
this.sended = true;
|
|
113
113
|
await this.notiy(o);
|
|
@@ -116,7 +116,7 @@ Monitor.prototype.loop = async function() {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
} catch (err) {
|
|
119
|
-
|
|
119
|
+
$.log.error(err);
|
|
120
120
|
}
|
|
121
121
|
$.sleep(1000);
|
|
122
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_monitor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "超级美眉监听器,用于监听网站运行是否异常并给运维人员发短信、邮箱通知",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://gitee.com/qiuwenwu91/mm_monitor#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"mm_email": "^1.0.
|
|
30
|
-
"mm_https": "^1.6.
|
|
29
|
+
"mm_email": "^1.0.8",
|
|
30
|
+
"mm_https": "^1.6.7",
|
|
31
31
|
"mm_phone": "^1.0.2"
|
|
32
32
|
}
|
|
33
33
|
}
|