tweak logging
This commit is contained in:
parent
75cc1dcc27
commit
1daec5577d
3 changed files with 3 additions and 2 deletions
|
@ -105,7 +105,6 @@ namespace BirdsiteLive.Domain
|
|||
|
||||
var response = await client.SendAsync(httpRequestMessage);
|
||||
response.EnsureSuccessStatusCode();
|
||||
_logger.LogInformation("Sent tweet to " + targetHost);
|
||||
|
||||
return response.StatusCode;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue