From c2ec3e7033b925343d973f4a40c0bab653791b7d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 28 Jan 2021 14:43:44 +0100 Subject: [PATCH] Enable error logging on MAM RSM --- src/xmpp/iq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index ed1af567..5012d1a5 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -2583,13 +2583,10 @@ _mam_rsm_id_handler(xmpp_stanza_t* const stanza, void* const userdata) { const char* type = xmpp_stanza_get_type(stanza); if (g_strcmp0(type, "error") == 0) { - //TODO - /* char* error_message = stanza_get_error_message(stanza); cons_show_error("Server error: %s", error_message); - log_debug("Error: %s", error_message); + log_debug("MAM Error: %s", error_message); free(error_message); - */ } else if (g_strcmp0(type, "result") == 0) { xmpp_stanza_t* fin = xmpp_stanza_get_child_by_name_and_ns(stanza, STANZA_NAME_FIN, STANZA_NS_MAM2); if (fin) {