summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-17 10:16:54 +0100
committerdefault <nobody@localhost>2022-11-17 10:16:54 +0100
commita12da31bdf680bffab98af9740a572854318f80b (patch)
treef51229326d766079fabe640eb62cc54ff22f1ffd /activitypub.c
parent35ad83e9ecc0f3ace2921dbd9114350de66e6fda (diff)
Move send to actor logging to process_queue().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c
index 96737ea..0f801f7 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -162,8 +162,6 @@ int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_s
if (!xs_is_null(inbox))
status = send_to_inbox(snac, inbox, msg, payload, p_size);
- snac_log(snac, xs_fmt("send_to_actor %s (%s) %d", actor, inbox, status));
-
return status;
}
@@ -942,15 +940,17 @@ void process_queue(snac *snac)
status = send_to_actor(snac, actor, msg, &payload, &p_size);
if (!valid_status(status)) {
- /* error sending; reenqueue? */
+ /* error sending; requeue? */
if (retries > queue_retry_max)
snac_log(snac, xs_fmt("process_queue giving up %s %d", actor, status));
else {
- /* reenqueue */
+ /* requeue */
enqueue_output(snac, msg, actor, retries + 1);
snac_log(snac, xs_fmt("process_queue requeue %s %d", actor, retries + 1));
}
}
+ else
+ snac_log(snac, xs_fmt("process_queue sent to actor %s %d", actor, status));
}
else
if (strcmp(type, "input") == 0) {