From f631e922bc271f3f674fc90af16f8a33bf9f6b1a Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Sat, 25 Mar 2023 15:44:42 -0400 Subject: [PATCH] tweak logging --- .../Processors/SendTweetsToFollowersProcessor.cs | 3 ++- .../Processors/SubTasks/SendTweetsToSharedInboxTask.cs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BirdsiteLive.Pipeline/Processors/SendTweetsToFollowersProcessor.cs b/src/BirdsiteLive.Pipeline/Processors/SendTweetsToFollowersProcessor.cs index 49e3bdb..9cfac79 100644 --- a/src/BirdsiteLive.Pipeline/Processors/SendTweetsToFollowersProcessor.cs +++ b/src/BirdsiteLive.Pipeline/Processors/SendTweetsToFollowersProcessor.cs @@ -63,7 +63,8 @@ namespace BirdsiteLive.Pipeline.Processors .ToList(); await ProcessFollowersWithInboxAsync(userWithTweetsToSync.Tweets, followerWtInbox, user); - _logger.LogInformation("Done sending " + userWithTweetsToSync.Tweets.Length + "tweets for user " + userWithTweetsToSync.User.Acct); + _logger.LogInformation("Done sending " + userWithTweetsToSync.Tweets.Length + " tweets for " + + userWithTweetsToSync.Followers.Length + "followers for user " + userWithTweetsToSync.User.Acct); }, ct); _todo.Add(t); diff --git a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs index f66eeab..87966c4 100644 --- a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs +++ b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs @@ -43,7 +43,6 @@ namespace BirdsiteLive.Pipeline.Processors.SubTasks var tweetsToSend = tweets .OrderBy(x => x.Id) .ToList(); - _logger.LogInformation("After filtering, there were " + tweetsToSend.Count() + " tweets left to send"); foreach (var tweet in tweetsToSend) {