diff --git a/activitypub.c b/activitypub.c index f962e69..ce66dae 100644 --- a/activitypub.c +++ b/activitypub.c @@ -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); } diff --git a/data.c b/data.c index 3f0ccf7..ffb218a 100644 --- a/data.c +++ b/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; }