Logging tweaks.

This commit is contained in:
default 2022-11-18 18:08:09 +01:00
parent 71b925d420
commit f4bebf0323
2 changed files with 5 additions and 6 deletions

View file

@ -973,7 +973,7 @@ void process_queue(snac *snac)
else { else {
/* requeue */ /* requeue */
enqueue_output(snac, msg, inbox, retries + 1); enqueue_output(snac, msg, inbox, retries + 1);
snac_log(snac, xs_fmt("process_queue requeue %s %d", inbox, retries + 1)); snac_log(snac, xs_fmt("process_queue requeue %s #%d", inbox, retries + 1));
} }
} }
} }
@ -990,7 +990,7 @@ void process_queue(snac *snac)
else { else {
/* reenqueue */ /* reenqueue */
enqueue_input(snac, msg, req, retries + 1); enqueue_input(snac, msg, req, retries + 1);
snac_log(snac, xs_fmt("process_queue input requeue %d", retries + 1)); snac_log(snac, xs_fmt("process_queue input requeue #%d", retries + 1));
} }
} }
} }
@ -1017,7 +1017,7 @@ void process_queue(snac *snac)
else { else {
/* requeue */ /* requeue */
snac_log(snac, xs_fmt( snac_log(snac, xs_fmt(
"process_queue email requeue %d (errno: %d)", retries + 1, errno)); "process_queue email requeue #%d (errno: %d)", retries + 1, errno));
enqueue_email(snac, msg, retries + 1); enqueue_email(snac, msg, retries + 1);
} }

5
data.c
View file

@ -594,9 +594,8 @@ int timeline_add(snac *snac, char *id, char *o_msg, char *parent, char *referrer
msg = xs_dict_set(msg, "_snac", md); msg = xs_dict_set(msg, "_snac", md);
ret = _timeline_write(snac, id, msg, parent, referrer); if ((ret = _timeline_write(snac, id, msg, parent, referrer)))
snac_debug(snac, 1, xs_fmt("timeline_add %s", id));
snac_debug(snac, 1, xs_fmt("timeline_add %s %d", id, ret));
return ret; return ret;
} }