From 5a5bc255cc7f89d2ac037026b8a711e477dc478e Mon Sep 17 00:00:00 2001 From: Neozonz Date: Mon, 20 Jan 2014 21:13:02 -0500 Subject: [PATCH] [Enhance] Improved logging [Fix] Added error messaging to all --- cronjobs/payouts.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cronjobs/payouts.php b/cronjobs/payouts.php index 87b5e119..51cdde1d 100755 --- a/cronjobs/payouts.php +++ b/cronjobs/payouts.php @@ -58,17 +58,17 @@ if ($setting->getValue('disable_manual_payouts') != 1) { try { $aStatus = $bitcoin->validateaddress($aData['coin_address']); if (!$aStatus['isvalid']) { - $log->logError('Failed to verify this users coin address, skipping payout'); + $log->logError('Skipping payment. Failed to verify coin address: ' . $aData['coin_address'] . ' ERROR: ' . $e->getMessage()); continue; } } catch (Exception $e) { - $log->logError('Failed to verify this users coin address, skipping payout'); + $log->logError('Skipping payment. RPC ERROR: ' . $e->getMessage()); continue; } try { $txid = $bitcoin->sendtoaddress($aData['coin_address'], $dBalance - $config['txfee_manual']); } catch (Exception $e) { - $log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount? Error:' . $e->getMessage()); + $log->logError('Skipping payment. Failed to send balance to coin address: ' . $aData['coin_address'] . ' ERROR: ' . . $e->getMessage()); continue; } @@ -120,11 +120,11 @@ if ($setting->getValue('disable_auto_payouts') != 1) { try { $aStatus = $bitcoin->validateaddress($aUserData['coin_address']); if (!$aStatus['isvalid']) { - $log->logError('Failed to verify this users coin address, skipping payout'); + $log->logError('Skipping payment. Failed to verify coin address: ' . $aData['coin_address'] . ' ERROR: ' . $e->getMessage()); continue; } } catch (Exception $e) { - $log->logError('Failed to verify this users coin address, skipping payout'); + $log->logError('Skipping payment. RPC ERROR: ' . $e->getMessage()); continue; } @@ -132,7 +132,7 @@ if ($setting->getValue('disable_auto_payouts') != 1) { try { $txid = $bitcoin->sendtoaddress($aUserData['coin_address'], $dBalance - $config['txfee_auto']); } catch (Exception $e) { - $log->logError('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount?'); + $log->logError('Skipping payment. Failed to send balance to coin address: ' . $aData['coin_address'] . ' ERROR: ' . . $e->getMessage()); continue; }