[ENHANCEMENT] add payout sum to log

This commit is contained in:
iAmShorty 2014-02-16 16:35:41 +01:00
parent 85f985060b
commit e9b056df0f

View File

@ -54,7 +54,7 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts) {
$aSendMany = NULL;
foreach ($aManualPayouts as $aUserData) $dMPTotalAmount += $aUserData['confirmed'];
if ($dMPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover MP payouts");
$log->logError(" Wallet does not cover MP payouts- Payout: " . $dMPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
@ -126,7 +126,7 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts) {
$dAPTotalAmount = 0;
foreach ($aAutoPayouts as $aUserData) $dAPTotalAmount += $aUserData['confirmed'];
if ($dAPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover AP payouts");
$log->logError(" Wallet does not cover AP payouts - Payout: " . $dAPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}