diff --git a/src/crashnotifier.js b/src/crashnotifier.js index f1bf5db51..b3825cb5d 100755 --- a/src/crashnotifier.js +++ b/src/crashnotifier.js @@ -28,6 +28,6 @@ function sendCrashNotification(processName) { } console.log('Sending crash notification email for', processName); - mailer.sendCrashNotification(processName, result); + mailer.sendFailureLogs(processName, result); }); } diff --git a/src/mailer.js b/src/mailer.js index 52cf44758..5caa8a580 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -12,7 +12,7 @@ exports = module.exports = { appUpdateAvailable: appUpdateAvailable, sendInvite: sendInvite, - sendCrashNotification: sendCrashNotification, + sendFailureLogs: sendFailureLogs, appDied: appDied, @@ -395,7 +395,7 @@ function certificateRenewed(domain, message) { // this function bypasses the queue intentionally. it is also expected to work without the mailer module initialized // crashnotifier should be able to send mail when there is no db -function sendCrashNotification(program, context) { +function sendFailureLogs(program, context) { assert.strictEqual(typeof program, 'string'); assert.strictEqual(typeof context, 'string');