From 7502ceba9f3a0ac38fd318439ad7374dd7808beb Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Sun, 8 May 2022 13:51:35 -0400 Subject: [PATCH] more logging 2 --- src/BirdsiteLive.Domain/ActivityPubService.cs | 4 ++++ .../Processors/SubTasks/SendTweetsToSharedInboxTask.cs | 1 + 2 files changed, 5 insertions(+) diff --git a/src/BirdsiteLive.Domain/ActivityPubService.cs b/src/BirdsiteLive.Domain/ActivityPubService.cs index 997e8f7..ede4239 100644 --- a/src/BirdsiteLive.Domain/ActivityPubService.cs +++ b/src/BirdsiteLive.Domain/ActivityPubService.cs @@ -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; } } diff --git a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs index 1abe183..055b47b 100644 --- a/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs +++ b/src/BirdsiteLive.Pipeline/Processors/SubTasks/SendTweetsToSharedInboxTask.cs @@ -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