mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add error message.
This commit is contained in:
parent
5e323b958f
commit
4436c9939e
@ -76,9 +76,7 @@ class SubmitTelemetryData implements ShouldQueue
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$json = $this->parseJson($telemetry);
|
$json = $this->parseJson($telemetry);
|
||||||
|
|
||||||
$client = new Client;
|
$client = new Client;
|
||||||
$options = [
|
$options = [
|
||||||
'body' => json_encode($json, JSON_THROW_ON_ERROR, 512),
|
'body' => json_encode($json, JSON_THROW_ON_ERROR, 512),
|
||||||
@ -94,7 +92,7 @@ class SubmitTelemetryData implements ShouldQueue
|
|||||||
} catch (GuzzleException $e) {
|
} catch (GuzzleException $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
Log::error($e->getTraceAsString());
|
Log::error($e->getTraceAsString());
|
||||||
|
Log::error('Could not submit telemetry.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$body = (string) $result->getBody();
|
$body = (string) $result->getBody();
|
||||||
|
Loading…
Reference in New Issue
Block a user