diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-07-31 14:32:18 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-07-31 14:32:18 +0300 |
commit | bda739aa6ee235519f27ccc1ecee2222f25def47 (patch) | |
tree | bff7545203ef71ddab45dfbf6cbceaea8c3c1937 /gsxlib.php | |
parent | ff0bc847d54df3ca01c0dc17cd5b53b2900e69c9 (diff) | |
download | gsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.tar.gz gsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.tar.bz2 gsxlib-bda739aa6ee235519f27ccc1ecee2222f25def47.zip |
Log SOAP errors, instead of print
Diffstat (limited to 'gsxlib.php')
-rw-r--r-- | gsxlib.php | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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); } |