tweak logging

This commit is contained in:
Vincent Cloutier 2023-03-19 11:04:03 -04:00
parent 75cc1dcc27
commit 1daec5577d
3 changed files with 3 additions and 2 deletions

View file

@ -105,7 +105,6 @@ namespace BirdsiteLive.Domain
var response = await client.SendAsync(httpRequestMessage);
response.EnsureSuccessStatusCode();
_logger.LogInformation("Sent tweet to " + targetHost);
return response.StatusCode;
}

View file

@ -38,7 +38,7 @@ namespace BirdsiteLive.Pipeline.Processors
{
var users = await _twitterUserDal.GetAllTwitterUsersWithFollowersAsync(2000);
var userCount = users.Any() ? Math.Min(users.Length, 100) : 1;
var userCount = users.Any() ? Math.Min(users.Length, 200) : 1;
var splitUsers = users.OrderBy(a => rng.Next()).ToArray().Split(userCount).ToList();
foreach (var u in splitUsers)

View file

@ -67,6 +67,8 @@ namespace BirdsiteLive.Pipeline.Processors
{
await Task.WhenAny(_todo);
}
_logger.LogInformation("Done sending " + userWithTweetsToSync.Followers.Length + "tweets for user " + userWithTweetsToSync.User.Acct);
}