mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 16:26:21 +00:00
Review logging for blocking.c
This commit is contained in:
@@ -273,7 +273,7 @@ _block_remove_result_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
|||||||
static int
|
static int
|
||||||
_blocklist_result_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
_blocklist_result_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
||||||
{
|
{
|
||||||
log_info("Blocked list result handler fired.");
|
log_debug("Blocked list result handler fired.");
|
||||||
|
|
||||||
const char *type = xmpp_stanza_get_type(stanza);
|
const char *type = xmpp_stanza_get_type(stanza);
|
||||||
if (g_strcmp0(type, "result") != 0) {
|
if (g_strcmp0(type, "result") != 0) {
|
||||||
@@ -294,7 +294,7 @@ _blocklist_result_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
|||||||
|
|
||||||
xmpp_stanza_t *items = xmpp_stanza_get_children(blocklist);
|
xmpp_stanza_t *items = xmpp_stanza_get_children(blocklist);
|
||||||
if (!items) {
|
if (!items) {
|
||||||
log_info("No blocked users.");
|
log_debug("No blocked users.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user