about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDebXWoody <stefan@debxwoody.de>2021-06-03 19:55:13 +0200
committerDebXWoody <stefan@debxwoody.de>2021-06-03 19:55:13 +0200
commit183eeca6321e1f31e7a665eb00a5ed6edc4e481d (patch)
tree6b3675cd9684d4fdd689479e2f1556401db678a1
parente1fbe3be90089d99d4996ff6e146e053124fb419 (diff)
downloadprofani-tty-183eeca6321e1f31e7a665eb00a5ed6edc4e481d.tar.gz
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.
-rw-r--r--src/xmpp/message.c4
1 files 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);