diff --git a/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs b/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs index d887108..b64ff40 100644 --- a/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs +++ b/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs @@ -98,7 +98,11 @@ namespace NucuCar.Telemetry.Publishers else { Logger?.LogError($"Firestore authentication request failed! {response?.StatusCode}!"); - Logger?.LogDebug($"{response?.Content}"); + if (response != null) + { + var contentBody = await response.Content.ReadAsStringAsync(); + Logger?.LogDebug(contentBody); + } } }