summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Kukkonen <jku@goto.fi>2014-07-08 15:26:48 +0300
committerJussi Kukkonen <jku@goto.fi>2014-07-09 11:28:30 +0300
commitb1cba1956c643095880625d5c3593de212ce66a2 (patch)
treed52099903c6bd9745502b9150154a74fe2cfe25f
parent4feeb69bca18c5645b43264090cae98b1b167cb2 (diff)
downloadgssdp-b1cba1956c643095880625d5c3593de212ce66a2.tar.gz
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
-rw-r--r--libgssdp/gssdp-client.c6
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);
}
}