From 2f8dc35c5d1b5e1cfe3f937efd7540379ed5aa34 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 19 Apr 2016 18:06:11 -0700 Subject: [PATCH] rename to sendFailureLogs --- src/crashnotifier.js | 2 +- src/mailer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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');