[gssdp] Do not use g_warning() when receiving malformed SSDP messages



commit b1cba1956c643095880625d5c3593de212ce66a2
Author: Jussi Kukkonen <jku goto fi>
Date:   Tue Jul 8 15:26:48 2014 +0300

    Do not use g_warning() when receiving malformed SSDP messages
    
    Use g_debug() instead of  g_warning() on non-200 responses and
    unparsable headers: Scary warnings aren't useful for things we
    can't control.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697084

 libgssdp/gssdp-client.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 856f36c..0fc7831 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -1222,8 +1222,8 @@ socket_source_cb (GSSDPSocketSource *socket_source, GSSDPClient *client)
         /* Find length */
         end = strstr (buf, "\r\n\r\n");
         if (!end) {
-                g_warning ("Received packet lacks \"\\r\\n\\r\\n\" sequence. "
-                           "Packed dropped.");
+                g_debug ("Received packet lacks \"\\r\\n\\r\\n\" sequence. "
+                         "Packed dropped.");
 
                 goto out;
         }
@@ -1242,7 +1242,7 @@ socket_source_cb (GSSDPSocketSource *socket_source, GSSDPClient *client)
                                           len,
                                           &headers,
                                           &type)) {
-                        g_warning ("Unhandled message '%s'", buf);
+                        g_debug ("Unhandled packet '%s'", buf);
                 }
         }
         


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]