mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Some logging tweaks.
This commit is contained in:
parent
88294c5198
commit
c693c7c62c
2 changed files with 7 additions and 1 deletions
|
@ -2052,6 +2052,7 @@ void process_queue_item(xs_dict *q_item)
|
||||||
xs *users = user_list();
|
xs *users = user_list();
|
||||||
xs_list *p = users;
|
xs_list *p = users;
|
||||||
char *v;
|
char *v;
|
||||||
|
int cnt = 0;
|
||||||
|
|
||||||
while (xs_list_iter(&p, &v)) {
|
while (xs_list_iter(&p, &v)) {
|
||||||
snac user;
|
snac user;
|
||||||
|
@ -2064,6 +2065,8 @@ void process_queue_item(xs_dict *q_item)
|
||||||
|
|
||||||
if (link(tmpfn, fn) < 0)
|
if (link(tmpfn, fn) < 0)
|
||||||
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));
|
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));
|
||||||
|
|
||||||
|
cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
user_free(&user);
|
user_free(&user);
|
||||||
|
@ -2071,6 +2074,9 @@ void process_queue_item(xs_dict *q_item)
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink(tmpfn);
|
unlink(tmpfn);
|
||||||
|
|
||||||
|
if (cnt == 0)
|
||||||
|
srv_debug(1, xs_fmt("no valid recipients for %s", tmpfn));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_log(xs_fmt("unexpected q_item type '%s'", type));
|
srv_log(xs_fmt("unexpected q_item type '%s'", type));
|
||||||
|
|
2
data.c
2
data.c
|
@ -2284,7 +2284,7 @@ void enqueue_request_replies(snac *user, const char *id)
|
||||||
|
|
||||||
qmsg = _enqueue_put(fn, qmsg);
|
qmsg = _enqueue_put(fn, qmsg);
|
||||||
|
|
||||||
snac_debug(user, 1, xs_fmt("enqueue_request_replies %s", id));
|
snac_debug(user, 2, xs_fmt("enqueue_request_replies %s", id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue