mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Always log send status in post_message().
This commit is contained in:
parent
545af948db
commit
0bdd1f0420
@ -335,11 +335,12 @@ void post_message(snac *snac, const char *actor, const xs_dict *msg)
|
|||||||
{
|
{
|
||||||
xs *payload = NULL;
|
xs *payload = NULL;
|
||||||
int p_size;
|
int p_size;
|
||||||
int status;
|
|
||||||
|
|
||||||
if (valid_status(status = send_to_actor(snac, actor, msg, &payload, &p_size, 3)))
|
int status = send_to_actor(snac, actor, msg, &payload, &p_size, 3);
|
||||||
|
|
||||||
srv_log(xs_fmt("post_message to actor %s %d", actor, status));
|
srv_log(xs_fmt("post_message to actor %s %d", actor, status));
|
||||||
else
|
|
||||||
|
if (!valid_status(status))
|
||||||
/* cannot send right now, enqueue */
|
/* cannot send right now, enqueue */
|
||||||
enqueue_message(snac, msg);
|
enqueue_message(snac, msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user