[FIX] Prop/PPLNS Double Payout log

This commit is contained in:
Sebastian Grewe 2014-01-30 14:33:49 +01:00
parent 923795c23b
commit 78b8bf4c27
2 changed files with 3 additions and 3 deletions

View File

@ -258,7 +258,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
'Block Share ID' => $aBlock['share_id']
);
if (!$mail->sendMail('notifications/error', $aMailData))
$log->logError(" Failed sending notifications: " . $notification->getCronError() . "\n");
$log->logError(" Failed sending notifications: " . $notification->getCronError());
$monitoring->endCronjob($cron_name, 'E0015', 1, true);
}
}

View File

@ -136,7 +136,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
$monitoring->endCronjob($cron_name, 'E0014', 1, true);
}
} else {
$log->logFatal('Potential double payout detected. Aborted.');
$log->logFatal('Potential double payout detected for block ' . $aBlock['id'] . '. Aborted.');
$aMailData = array(
'email' => $setting->getValue('system_error_email'),
'subject' => 'Payout Failure: Double Payout',
@ -146,7 +146,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
'Block Share ID' => $aBlock['share_id']
);
if (!$mail->sendMail('notifications/error', $aMailData))
$log->logFatal('Potential double payout detected. Aborted.');
$log->logError('Failed to send notification mail');
$monitoring->endCronjob($cron_name, 'E0015', 1, true);
}
}