aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-07-31 14:32:18 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-07-31 14:32:18 +0300
commitbda739aa6ee235519f27ccc1ecee2222f25def47 (patch)
treebff7545203ef71ddab45dfbf6cbceaea8c3c1937
parentff0bc847d54df3ca01c0dc17cd5b53b2900e69c9 (diff)
downloadgsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.tar.gz
gsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.tar.bz2
gsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.zip
Log SOAP errors, instead of print
-rw-r--r--gsxlib.php13
1 files changed, 6 insertions, 7 deletions
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);
}