=?utf-8?b?W2xpYmdkYXRhXSBjb3JlOiBNYWtlIOKAmFVuaGFuZGxlZCBYTUzigJkgbWVz?= =?utf-8?q?sages_be_debug-only_messages?=
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Make âUnhandled XMLâ messages be debug-only messages
- Date: Tue, 25 Dec 2012 09:41:37 +0000 (UTC)
commit 88e381defb549aa499d7cc482dc7d2dfe5a93577
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Dec 25 09:38:52 2012 +0000
core: Make âUnhandled XMLâ messages be debug-only messages
This stops them filling up peopleâs .xsession-errors files unnecessarily.
There is little point to having them as normal GLib messages, since it
didnât encourage many people to file bugs about unhandled XML and missing
features.
If anybody still needs this output, just enable debug output using
G_MESSAGES_DEBUG=all LIBGDATA_DEBUG=3.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=690656
gdata/gdata-parsable.c | 2 +-
gdata/georss/gdata-georss-where.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/gdata-parsable.c b/gdata/gdata-parsable.c
index c9db6b4..bada35b 100644
--- a/gdata/gdata-parsable.c
+++ b/gdata/gdata-parsable.c
@@ -156,7 +156,7 @@ real_parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer us
buffer = xmlBufferCreate ();
xmlNodeDump (buffer, doc, node, 0, 0);
g_string_append (parsable->priv->extra_xml, (gchar*) xmlBufferContent (buffer));
- g_message ("Unhandled XML in %s: %s", G_OBJECT_TYPE_NAME (parsable), (gchar*) xmlBufferContent (buffer));
+ g_debug ("Unhandled XML in %s: %s", G_OBJECT_TYPE_NAME (parsable), (gchar*) xmlBufferContent (buffer));
xmlBufferFree (buffer);
/* Get the namespaces */
diff --git a/gdata/georss/gdata-georss-where.c b/gdata/georss/gdata-georss-where.c
index 1b2f2a5..66247c8 100644
--- a/gdata/georss/gdata-georss-where.c
+++ b/gdata/georss/gdata-georss-where.c
@@ -108,7 +108,7 @@ parse_xml (GDataParsable *parsable, xmlDoc *doc, xmlNode *node, gpointer user_da
/* Unhandled XML */
buffer = xmlBufferCreate ();
xmlNodeDump (buffer, doc, child, 0, 0);
- g_message ("Unhandled XML in <gml:Point>: %s", (gchar*) xmlBufferContent (buffer));
+ g_debug ("Unhandled XML in <gml:Point>: %s", (gchar*) xmlBufferContent (buffer));
xmlBufferFree (buffer);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]