summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorGravatar default2024-02-16 05:26:31 +0100
committerGravatar default2024-02-16 05:26:31 +0100
commit572c52f9fea21b81fbaae4c74adfab857f7924e4 (patch)
tree2c66e7c6227da8d6c5cb569ad4adcf294152a768 /utils.c
parentUpdated depedencies. (diff)
downloadpenes-snac2-572c52f9fea21b81fbaae4c74adfab857f7924e4.tar.gz
penes-snac2-572c52f9fea21b81fbaae4c74adfab857f7924e4.tar.xz
penes-snac2-572c52f9fea21b81fbaae4c74adfab857f7924e4.zip
More verify link logging.
Diffstat (limited to '')
-rw-r--r--utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 9690768..4bf465a 100644
--- a/utils.c
+++ b/utils.c
@@ -431,8 +431,10 @@ void verify_links(snac *user)
431 req = xs_http_request("GET", v, NULL, NULL, 0, &status, 431 req = xs_http_request("GET", v, NULL, NULL, 0, &status,
432 &payload, &p_size, 0); 432 &payload, &p_size, 0);
433 433
434 if (!valid_status(status)) 434 if (!valid_status(status)) {
435 snac_log(user, xs_fmt("verify link %s error %d", v, status));
435 continue; 436 continue;
437 }
436 438
437 /* extract the links */ 439 /* extract the links */
438 xs *ls = xs_regex_select(payload, "< *(a|link) +[^>]+>"); 440 xs *ls = xs_regex_select(payload, "< *(a|link) +[^>]+>");
@@ -490,8 +492,11 @@ void verify_links(snac *user)
490 492
491 changed++; 493 changed++;
492 494
493 snac_log(user, xs_fmt("verify_links: %s at %s", v, verified_at)); 495 snac_log(user, xs_fmt("link %s verified at %s", v, verified_at));
494 } 496 }
497 else
498 snac_debug(user, 1,
499 xs_fmt("verify link %s rel='me' found but not related (%s)", v, href));
495 } 500 }
496 } 501 }
497 } 502 }