Fix log in TelemetryPublisherAzure message not printed
This commit is contained in:
parent
5be270210a
commit
f5823f8c57
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ namespace NucuCar.Domain.Telemetry
|
||||||
|
|
||||||
var messageString = JsonConvert.SerializeObject(data);
|
var messageString = JsonConvert.SerializeObject(data);
|
||||||
var message = new Message(Encoding.ASCII.GetBytes(messageString));
|
var message = new Message(Encoding.ASCII.GetBytes(messageString));
|
||||||
Logger?.LogDebug($"Telemetry message: {message}");
|
Logger?.LogDebug($"Telemetry message: {messageString}");
|
||||||
await DeviceClient.SendEventAsync(message, cancellationToken);
|
await DeviceClient.SendEventAsync(message, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue