[IMPROVED] Payout logging and indent
This commit is contained in:
parent
c42fc60742
commit
f2f539ef53
@ -68,7 +68,7 @@ if ($setting->getValue('disable_manual_payouts') != 1) {
|
|||||||
try {
|
try {
|
||||||
$txid = $bitcoin->sendtoaddress($aData['coin_address'], $dBalance - $config['txfee_manual']);
|
$txid = $bitcoin->sendtoaddress($aData['coin_address'], $dBalance - $config['txfee_manual']);
|
||||||
} catch (Exception $e) {
|
} 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('Failed to send requested balance to coin address, please check payout process. Does the wallet cover the amount? Error:' . $e->getMessage());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with JSON-RPC PHP; if not, write to the Free Software
|
along with JSON-RPC PHP; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The object of this class are generic jsonRPC 1.0 clients
|
* The object of this class are generic jsonRPC 1.0 clients
|
||||||
@ -108,6 +108,7 @@ class jsonRPCClient {
|
|||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
|
$this->debug = true;
|
||||||
if ($this->debug) $this->debug_output[] = 'Response: ' . $response;
|
if ($this->debug) $this->debug_output[] = 'Response: ' . $response;
|
||||||
$response = json_decode($response, true);
|
$response = json_decode($response, true);
|
||||||
$resultStatus = curl_getinfo($ch);
|
$resultStatus = curl_getinfo($ch);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user