mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
Always log send status in post_message().
This commit is contained in:
parent
545af948db
commit
0bdd1f0420
1 changed files with 5 additions and 4 deletions
|
@ -335,11 +335,12 @@ void post_message(snac *snac, const char *actor, const xs_dict *msg)
|
|||
{
|
||||
xs *payload = NULL;
|
||||
int p_size;
|
||||
int status;
|
||||
|
||||
if (valid_status(status = send_to_actor(snac, actor, msg, &payload, &p_size, 3)))
|
||||
srv_log(xs_fmt("post_message to actor %s %d", actor, status));
|
||||
else
|
||||
int status = send_to_actor(snac, actor, msg, &payload, &p_size, 3);
|
||||
|
||||
srv_log(xs_fmt("post_message to actor %s %d", actor, status));
|
||||
|
||||
if (!valid_status(status))
|
||||
/* cannot send right now, enqueue */
|
||||
enqueue_message(snac, msg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue