snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit ae6df3d288f5fabaa12450561942e48b813bc84c
parent 61647de38bbd8751d18680251f31d6b5347a714c
Author: default <nobody@localhost>
Date:   Mon,  4 Mar 2024 09:22:06 +0100

More logging tweaks.

Diffstat:
Mactivitypub.c | 3++-
Mdata.c | 4++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/activitypub.c b/activitypub.c @@ -2457,7 +2457,8 @@ void process_queue_item(xs_dict *q_item) if (is_msg_for_me(&user, msg)) { xs *fn = xs_fmt("%s/queue/%s.json", user.basedir, ntid); - snac_debug(&user, 1, xs_fmt("enqueue_input (from shared inbox) %s", fn)); + snac_debug(&user, 1, + xs_fmt("enqueue_input (from shared inbox) %s", xs_dict_get(msg, "id"))); if (link(tmpfn, fn) < 0) srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn)); diff --git a/data.c b/data.c @@ -2225,7 +2225,7 @@ void enqueue_input(snac *snac, const xs_dict *msg, const xs_dict *req, int retri qmsg = _enqueue_put(fn, qmsg); - snac_debug(snac, 1, xs_fmt("enqueue_input %s %s", fn, xs_dict_get(msg, "id"))); + snac_debug(snac, 1, xs_fmt("enqueue_input %s", xs_dict_get(msg, "id"))); } @@ -2240,7 +2240,7 @@ void enqueue_shared_input(const xs_dict *msg, const xs_dict *req, int retries) qmsg = _enqueue_put(fn, qmsg); - srv_debug(1, xs_fmt("enqueue_shared_input %s %s", fn, xs_dict_get(msg, "id"))); + srv_debug(1, xs_fmt("enqueue_shared_input %s", xs_dict_get(msg, "id"))); }