Merge pull request #1769 from iAmShorty/payout-log
[ENHANCEMENT] add payout sum to log
This commit is contained in:
commit
fab0b0c817
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user