Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppMonitorSubscriber
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nongyingchen
AppMonitorSubscriber
Commits
6ca81328
Commit
6ca81328
authored
May 23, 2019
by
trace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: chaolun email invalid
parent
830b2e66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
play.js
+3
-3
No files found.
play.js
View file @
6ca81328
...
...
@@ -183,7 +183,7 @@ async function startMonitor() {
sendEmail
(
content
,
developer
)
dingDing
(
content
)
if
(
err
.
toString
().
includes
(
'ENOSPC'
))
{
sendEmail
(
`小老弟, 这个爬虫呆着的机器没空间了,
${
err
.
toString
()}
`
,
'
chaolun.ni
@starwin.com'
)
sendEmail
(
`小老弟, 这个爬虫呆着的机器没空间了,
${
err
.
toString
()}
`
,
'
yingchen.nong
@starwin.com'
)
}
// 出错了需要重新抓, 需要清空之前缓存的状态
...
...
@@ -750,7 +750,7 @@ function sendEmail(content, to = notifyEmail) {
// // to = [...to, 添加只对自己app监控的人]
// }
let
myEmail
=
'
chaolun.ni
@starwin.com'
let
myEmail
=
'
yingchen.nong
@starwin.com'
let
emailTo
=
to
.
join
(
', '
)
let
trans
=
nodemailer
.
createTransport
({
host
:
'smtp.exmail.qq.com'
,
...
...
@@ -758,7 +758,7 @@ function sendEmail(content, to = notifyEmail) {
secure
:
false
,
auth
:
{
user
:
myEmail
,
pass
:
'
3JkTpbNQ3DeNRJb
u'
pass
:
'
rwGxHWrxYKJJ2xn
u'
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment