mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Log the response date in send_to_inbox() errors.
This commit is contained in:
parent
8eb2cc7217
commit
79270abd09
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue