[UPDATE] added logging information

looks good while doing payouts
```
2014-02-16 17:51:09 - INFO --> Starting Payout...
2014-02-16 17:51:09 - INFO --> Auto Payout Sum: 107.55535194 - Wallet Balance: 35779.26412985 with 4750.003 unconfirmed
2014-02-16 17:51:09 - INFO -->   found 1 queued auto payouts
2014-02-16 17:51:09 - INFO -->     | UserID     | Username                  | Balance              | Address                                  | Threshold            |
2014-02-16 17:51:09 - INFO -->     | 5          | shorty                    | 107.55535194         | MMRFkUnQSMDBQSMBG3QBBaEg4ixSa7ksDm       | 100                  |
2014-02-16 17:51:11 - INFO -->   payout succeeded with RPC TXID: 722fbd25bd02e08516cb49577c0a69f8aa51be6a6867047cb553b29085c238d3
```
This commit is contained in:
iAmShorty 2014-02-16 17:51:47 +01:00
parent 63ba74fc60
commit 6b8f1e6b52

View File

@ -29,7 +29,7 @@ if ($setting->getValue('disable_payouts') == 1) {
$log->logInfo(" payouts disabled via admin panel");
$monitoring->endCronjob($cron_name, 'E0009', 0, true, false);
}
$log->logDebug("Starting Payout...");
$log->logInfo("Starting Payout...");
if ($bitcoin->can_connect() !== true) {
$log->logFatal(" unable to connect to RPC server, exiting");
$monitoring->endCronjob($cron_name, 'E0006', 1, true);
@ -65,7 +65,8 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts) {
$log->logError(" Wallet does not cover MP payouts - Payout: " . $dMPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
$log->logInfo("Manual Payout Sum: " . $dMPTotalAmount . " - Wallet Balance: " . $dWalletBalance . " with " . $dBlocksUnconfirmedBalance . " unconfirmed");
$log->logInfo(' found ' . count($aManualPayouts) . ' queued manual payouts');
$mask = ' | %-10.10s | %-25.25s | %-20.20s | %-40.40s | %-20.20s |';
$log->logInfo(sprintf($mask, 'UserID', 'Username', 'Balance', 'Address', 'Payout ID'));
@ -145,7 +146,8 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts) {
$log->logError(" Wallet does not cover AP payouts - Payout: " . $dAPTotalAmount . " - Balance: " . $dWalletBalance);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
$log->logInfo("Auto Payout Sum: " . $dAPTotalAmount . " - Wallet Balance: " . $dWalletBalance . " with " . $dBlocksUnconfirmedBalance . " unconfirmed");
$log->logInfo(' found ' . count($aAutoPayouts) . ' queued auto payouts');
$mask = ' | %-10.10s | %-25.25s | %-20.20s | %-40.40s | %-20.20s |';
$log->logInfo(sprintf($mask, 'UserID', 'Username', 'Balance', 'Address', 'Threshold'));
@ -197,4 +199,4 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts) {
}
}
require_once('cron_end.inc.php');
require_once('cron_end.inc.php');