[FIX] Prop/PPLNS Double Payout log
This commit is contained in:
parent
923795c23b
commit
78b8bf4c27
@ -258,7 +258,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
|
|||||||
'Block Share ID' => $aBlock['share_id']
|
'Block Share ID' => $aBlock['share_id']
|
||||||
);
|
);
|
||||||
if (!$mail->sendMail('notifications/error', $aMailData))
|
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);
|
$monitoring->endCronjob($cron_name, 'E0015', 1, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,7 +136,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
|
|||||||
$monitoring->endCronjob($cron_name, 'E0014', 1, true);
|
$monitoring->endCronjob($cron_name, 'E0014', 1, true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$log->logFatal('Potential double payout detected. Aborted.');
|
$log->logFatal('Potential double payout detected for block ' . $aBlock['id'] . '. Aborted.');
|
||||||
$aMailData = array(
|
$aMailData = array(
|
||||||
'email' => $setting->getValue('system_error_email'),
|
'email' => $setting->getValue('system_error_email'),
|
||||||
'subject' => 'Payout Failure: Double Payout',
|
'subject' => 'Payout Failure: Double Payout',
|
||||||
@ -146,7 +146,7 @@ foreach ($aAllBlocks as $iIndex => $aBlock) {
|
|||||||
'Block Share ID' => $aBlock['share_id']
|
'Block Share ID' => $aBlock['share_id']
|
||||||
);
|
);
|
||||||
if (!$mail->sendMail('notifications/error', $aMailData))
|
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);
|
$monitoring->endCronjob($cron_name, 'E0015', 1, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user