Debug log updates, error message updates on curl failure
Config setup works with null data if no data is set. Debugger is now launched in the AamzonIncentive class at the beginning Debugger id/debug flag set is now one static call Debugger methods all have proper PHPdoc documentationn added Fixed Client/Curl error messages to include the original error message too. Also made sure that a possible null endpoint is not throwing errors
This commit is contained in:
@@ -34,8 +34,6 @@ class AWS
|
||||
public function __construct(Config $config)
|
||||
{
|
||||
$this->config = $config;
|
||||
AmazonDebug::setFlag($config->getDebug());
|
||||
AmazonDebug::setId();
|
||||
AmazonDebug::writeLog([__METHOD__ => date('Y-m-d H:m:s.u')]);
|
||||
}
|
||||
|
||||
@@ -154,7 +152,7 @@ class AWS
|
||||
'Service' => $k_service_hexis,
|
||||
]]);
|
||||
|
||||
$url = 'https://' . $endpoint . '/' . $service_operation;
|
||||
$url = 'https://' . (string)$endpoint . '/' . $service_operation;
|
||||
$headers = $this->buildHeaders($payload, $authorization_value, $date_time_string, $service_target);
|
||||
return (new Client())->request($url, $headers, $payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user