From bda739aa6ee235519f27ccc1ecee2222f25def47 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 31 Jul 2015 14:32:18 +0300 Subject: Log SOAP errors, instead of print --- gsxlib.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'gsxlib.php') diff --git a/gsxlib.php b/gsxlib.php index eb8208d..5dfcdb5 100644 --- a/gsxlib.php +++ b/gsxlib.php @@ -126,16 +126,15 @@ class GsxLib ->AuthenticateResponse ->userSessionId; } catch(SoapFault $e) { - print($e); - print($this->wsdl); - print($this->client->__getLastRequest()); - print($this->client->__getLastResponse()); - print($this->client->__getLastResponseHeaders()); + syslog(LOG_ERR, $e); + syslog(LOG_ERR, $this->wsdl); + syslog(LOG_ERR, $this->client->__getLastRequest()); + syslog(LOG_ERR, $this->client->__getLastResponse()); + syslog(LOG_ERR, $this->client->__getLastResponseHeaders()); if($environment == '') $environment = 'production'; - $error = 'Authentication with GSX failed. Does this account have access to ' - .$environment."?\n"; + $error = 'Authentication with GSX failed. Does this account have access to '.$environment."?\n"; throw new GsxException($error); } -- cgit v1.2.3