diff options
| author | 2023-12-11 07:37:53 +0100 | |
|---|---|---|
| committer | 2023-12-11 07:37:53 +0100 | |
| commit | c693c7c62c2360826e15e31f259b00b5814c2d3e (patch) | |
| tree | 187c176e557a5df651bb8aa79e002a9c447022b4 | |
| parent | Log actor_request() errors. (diff) | |
| download | snac2-c693c7c62c2360826e15e31f259b00b5814c2d3e.tar.gz snac2-c693c7c62c2360826e15e31f259b00b5814c2d3e.tar.xz snac2-c693c7c62c2360826e15e31f259b00b5814c2d3e.zip | |
Some logging tweaks.
| -rw-r--r-- | activitypub.c | 6 | ||||
| -rw-r--r-- | data.c | 2 |
2 files changed, 7 insertions, 1 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) | |||
| 2052 | xs *users = user_list(); | 2052 | xs *users = user_list(); |
| 2053 | xs_list *p = users; | 2053 | xs_list *p = users; |
| 2054 | char *v; | 2054 | char *v; |
| 2055 | int cnt = 0; | ||
| 2055 | 2056 | ||
| 2056 | while (xs_list_iter(&p, &v)) { | 2057 | while (xs_list_iter(&p, &v)) { |
| 2057 | snac user; | 2058 | snac user; |
| @@ -2064,6 +2065,8 @@ void process_queue_item(xs_dict *q_item) | |||
| 2064 | 2065 | ||
| 2065 | if (link(tmpfn, fn) < 0) | 2066 | if (link(tmpfn, fn) < 0) |
| 2066 | srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn)); | 2067 | srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn)); |
| 2068 | |||
| 2069 | cnt++; | ||
| 2067 | } | 2070 | } |
| 2068 | 2071 | ||
| 2069 | user_free(&user); | 2072 | user_free(&user); |
| @@ -2071,6 +2074,9 @@ void process_queue_item(xs_dict *q_item) | |||
| 2071 | } | 2074 | } |
| 2072 | 2075 | ||
| 2073 | unlink(tmpfn); | 2076 | unlink(tmpfn); |
| 2077 | |||
| 2078 | if (cnt == 0) | ||
| 2079 | srv_debug(1, xs_fmt("no valid recipients for %s", tmpfn)); | ||
| 2074 | } | 2080 | } |
| 2075 | else | 2081 | else |
| 2076 | srv_log(xs_fmt("unexpected q_item type '%s'", type)); | 2082 | srv_log(xs_fmt("unexpected q_item type '%s'", type)); |
| @@ -2284,7 +2284,7 @@ void enqueue_request_replies(snac *user, const char *id) | |||
| 2284 | 2284 | ||
| 2285 | qmsg = _enqueue_put(fn, qmsg); | 2285 | qmsg = _enqueue_put(fn, qmsg); |
| 2286 | 2286 | ||
| 2287 | snac_debug(user, 1, xs_fmt("enqueue_request_replies %s", id)); | 2287 | snac_debug(user, 2, xs_fmt("enqueue_request_replies %s", id)); |
| 2288 | } | 2288 | } |
| 2289 | 2289 | ||
| 2290 | 2290 | ||