more logging 2

This commit is contained in:
Vincent Cloutier 2022-05-08 13:51:35 -04:00
parent c670789315
commit 7502ceba9f
2 changed files with 5 additions and 0 deletions

View file

@ -122,6 +122,10 @@ namespace BirdsiteLive.Domain
var response = await client.SendAsync(httpRequestMessage);
response.EnsureSuccessStatusCode();
_logger.LogInformation("Sent tweet to " + targetHost);
var c = await response.Content.ReadAsStringAsync();
_logger.LogInformation("Got res after posting tweet " + c);
return response.StatusCode;
}
}

View file

@ -47,6 +47,7 @@ namespace BirdsiteLive.Pipeline.Processors.SubTasks
.Where(x => x.Id > fromStatusId)
.OrderBy(x => x.Id)
.ToList();
_logger.LogInformation("After filtering, there were " + tweetsToSend.Count() + " tweets left to send");
var syncStatus = fromStatusId;
try