From 183eeca6321e1f31e7a665eb00a5ed6edc4e481d Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Thu, 3 Jun 2021 19:55:13 +0200 Subject: [PATCH] Message received without body error log This is not an error, the message has no body because of XEP-0085: Chat State Notifications. Changed log level from error to info. --- src/xmpp/message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/message.c b/src/xmpp/message.c index b6be52a8..fc841ae2 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -1086,7 +1086,7 @@ _handle_groupchat(xmpp_stanza_t* const stanza) #endif if (!message->plain && !message->body) { - log_error("Message received without body for room: %s", from_jid->str); + log_info("Message received without body for room: %s", from_jid->str); goto out; } else if (!message->plain) { message->plain = strdup(message->body); @@ -1244,7 +1244,7 @@ _handle_muc_private_message(xmpp_stanza_t* const stanza) message->body = xmpp_message_get_body(stanza); if (!message->plain && !message->body) { - log_error("Message received without body from: %s", message->from_jid->str); + log_info("Message received without body from: %s", message->from_jid->str); goto out; } else if (!message->plain) { message->plain = strdup(message->body);