commit 572c52f
default
·
2024-02-16 04:26:31 +0000 UTC
parent fcf9f9e
More verify link logging.
1 files changed,
+7,
-2
M
utils.c
M
utils.c
+7,
-2
1@@ -431,8 +431,10 @@ void verify_links(snac *user)
2 req = xs_http_request("GET", v, NULL, NULL, 0, &status,
3 &payload, &p_size, 0);
4
5- if (!valid_status(status))
6+ if (!valid_status(status)) {
7+ snac_log(user, xs_fmt("verify link %s error %d", v, status));
8 continue;
9+ }
10
11 /* extract the links */
12 xs *ls = xs_regex_select(payload, "< *(a|link) +[^>]+>");
13@@ -490,8 +492,11 @@ void verify_links(snac *user)
14
15 changed++;
16
17- snac_log(user, xs_fmt("verify_links: %s at %s", v, verified_at));
18+ snac_log(user, xs_fmt("link %s verified at %s", v, verified_at));
19 }
20+ else
21+ snac_debug(user, 1,
22+ xs_fmt("verify link %s rel='me' found but not related (%s)", v, href));
23 }
24 }
25 }