From 5e0cb44c8e78cf5fce1fab028d82b19c393a7302 Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Mon, 26 Dec 2022 15:05:46 -0500 Subject: [PATCH] more logging --- .../Processors/RetrieveTweetsProcessor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs b/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs index 69a48a4..a81ba68 100644 --- a/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs +++ b/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs @@ -36,11 +36,13 @@ namespace BirdsiteLive.Pipeline.Processors var usersWtTweets = new List(); //TODO multithread this + int index = 0; foreach (var userWtData in syncTwitterUsers) { + index++; var user = userWtData.User; var tweets = await RetrieveNewTweets(user); - _logger.LogInformation("Got " + tweets.Length + " tweets from user " + user.Acct); + _logger.LogInformation(index + "/" + syncTwitterUsers.Count() + " Got " + tweets.Length + " tweets from user " + user.Acct + " " ); if (tweets.Length > 0 && user.LastTweetPostedId != -1) { userWtData.Tweets = tweets;