more logging

This commit is contained in:
Vincent Cloutier 2022-12-26 15:05:46 -05:00
parent 759a697ce6
commit 5e0cb44c8e

View file

@ -36,11 +36,13 @@ namespace BirdsiteLive.Pipeline.Processors
var usersWtTweets = new List<UserWithDataToSync>();
//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;