Add debug code for insurance api #783

This commit is contained in:
Ramon Gutierrez 2024-03-12 16:34:21 +08:00
parent 175ac92765
commit 9f4c16b149

View file

@ -111,6 +111,8 @@ class InsuranceConnector
error_log("Insurance API Error: " . $error['message']);
error_log(Psr7\Message::toString($e->getRequest()));
error_log($e->getResponse()->getBody()->getContents());
error_log("Insurance Creds: " . $this->username . ", " . $this->password);
error_log("Insurance Hash: " . $this->generateHash());
if ($e->hasResponse()) {
$error['response'] = Psr7\Message::toString($e->getResponse());