mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Logging tweaks.
This commit is contained in:
parent
71b925d420
commit
f4bebf0323
@ -973,7 +973,7 @@ void process_queue(snac *snac)
|
||||
else {
|
||||
/* requeue */
|
||||
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 {
|
||||
/* reenqueue */
|
||||
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 {
|
||||
/* requeue */
|
||||
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);
|
||||
}
|
||||
|
5
data.c
5
data.c
@ -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);
|
||||
|
||||
ret = _timeline_write(snac, id, msg, parent, referrer);
|
||||
|
||||
snac_debug(snac, 1, xs_fmt("timeline_add %s %d", id, ret));
|
||||
if ((ret = _timeline_write(snac, id, msg, parent, referrer)))
|
||||
snac_debug(snac, 1, xs_fmt("timeline_add %s", id));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user