Skip to content

Commit

Permalink
Merge pull request #68 from osmanhadzic/fix-log-messages
Browse files Browse the repository at this point in the history
Remove `due to expiration` from log messages
  • Loading branch information
harlem88 authored Mar 6, 2024
2 parents 683d2fe + c3356fa commit 57cab2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions AstarteDeviceSDKCSharp/Data/AstarteFailedMessageStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public void Ack(AstarteFailedMessageEntry failedMessages)
{
if (failedMessages is not null)
{
Console.WriteLine($"The message has been removed from "
+ " the local database due to expiration.");
Console.WriteLine($"The message has been removed from local database.");
Console.WriteLine($"{failedMessages.GetTopic()}"
+ $" : {failedMessages.GetPayload()}");

Expand Down Expand Up @@ -172,8 +171,7 @@ public void AckFirstCache()

if (failedMessages.Count() > 0)
{
Console.WriteLine($"The message has been removed from"
+ "the cache memory due to expiration.");
Console.WriteLine($"The message has been removed from cache memory.");
Console.WriteLine($"{failedMessages.First().GetTopic()} :"
+ "{failedMessages.First().GetPayload()}");

Expand Down

0 comments on commit 57cab2c

Please sign in to comment.