summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-11 07:37:53 +0100
committerdefault <nobody@localhost>2023-12-11 07:37:53 +0100
commitc693c7c62c2360826e15e31f259b00b5814c2d3e (patch)
tree187c176e557a5df651bb8aa79e002a9c447022b4 /activitypub.c
parent88294c51987ee7ccdad1ccba4eac802b44fec0b6 (diff)
Some logging tweaks.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index f4c081b..5afe304 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2052,6 +2052,7 @@ void process_queue_item(xs_dict *q_item)
xs *users = user_list();
xs_list *p = users;
char *v;
+ int cnt = 0;
while (xs_list_iter(&p, &v)) {
snac user;
@@ -2064,6 +2065,8 @@ void process_queue_item(xs_dict *q_item)
if (link(tmpfn, fn) < 0)
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));
+
+ cnt++;
}
user_free(&user);
@@ -2071,6 +2074,9 @@ void process_queue_item(xs_dict *q_item)
}
unlink(tmpfn);
+
+ if (cnt == 0)
+ srv_debug(1, xs_fmt("no valid recipients for %s", tmpfn));
}
else
srv_log(xs_fmt("unexpected q_item type '%s'", type));