diff options
author | default <nobody@localhost> | 2022-12-11 09:08:12 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-11 09:08:12 +0100 |
commit | 79270abd09689e9a7532590e3aa1c016b8cb96c9 (patch) | |
tree | c9cd11b36f6c2007544f860bfded8506d05c455e | |
parent | 8eb2cc72176f51c6c0a926cceb207f33d286a3dd (diff) |
Log the response date in send_to_inbox() errors.
-rw-r--r-- | activitypub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index bb964a9..88febbf 100644 --- a/activitypub.c +++ b/activitypub.c @@ -128,6 +128,11 @@ int send_to_inbox(snac *snac, char *inbox, char *msg, d_char **payload, int *p_s response = http_signed_request(snac, "POST", inbox, NULL, j_msg, strlen(j_msg), &status, payload, p_size); + if (status == 400) { + snac_debug(snac, 0, xs_fmt("send_to_inbox error %d (response date: '%s')", + status, xs_dict_get(response, "date"))); + } + xs_free(response); return status; |