stop sending emalis on error. Annoying as heck
This commit is contained in:
parent
4f2da73f00
commit
81e17e6997
13
index.js
13
index.js
|
@ -56,13 +56,12 @@ function search(accounts) {
|
||||||
|
|
||||||
function emailError(err, restart = false){
|
function emailError(err, restart = false){
|
||||||
console.log(err)
|
console.log(err)
|
||||||
console.log(restart)
|
// transporter.sendMail({
|
||||||
transporter.sendMail({
|
// from: '"Random Ethereum Scanner" <foo@example.com>',
|
||||||
from: '"Random Ethereum Scanner" <foo@example.com>',
|
// to: process.env.EMAIL_TO, // Test email address
|
||||||
to: process.env.EMAIL_TO, // Test email address
|
// subject: "Error detected",
|
||||||
subject: "Error detected",
|
// text: err.toString(),
|
||||||
text: err.toString(),
|
// }).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
|
||||||
}).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
|
|
||||||
if (restart) {
|
if (restart) {
|
||||||
main(count, balancesFound)
|
main(count, balancesFound)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue