Add error message.

This commit is contained in:
James Cole 2020-03-22 08:04:35 +01:00
parent 5e323b958f
commit 4436c9939e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -76,9 +76,7 @@ class SubmitTelemetryData implements ShouldQueue
return;
}
$json = $this->parseJson($telemetry);
$client = new Client;
$options = [
'body' => json_encode($json, JSON_THROW_ON_ERROR, 512),
@ -94,7 +92,7 @@ class SubmitTelemetryData implements ShouldQueue
} catch (GuzzleException $e) {
Log::error($e->getMessage());
Log::error($e->getTraceAsString());
Log::error('Could not submit telemetry.');
return;
}
$body = (string) $result->getBody();