pidgin/pidgin

facebook: use proper debugging utility for JSON data
facebook
2015-08-11, James Geboski
61105b311c1f
Parents e4d77bc25235
Children 3d30d24fdbef
facebook: use proper debugging utility for JSON data
--- a/libpurple/protocols/facebook/api.c Tue Aug 11 00:37:14 2015 -0400
+++ b/libpurple/protocols/facebook/api.c Tue Aug 11 14:29:26 2015 -0400
@@ -360,7 +360,8 @@
return FALSE;
}
- g_print("JSON: %.*s\n", (gint) size, (gchar*) data);
+ fb_util_debug(FB_UTIL_DEBUG_INFO, "Parsing JSON: %.*s\n",
+ (gint) size, (const gchar *) data);
root = fb_json_node_new(data, size, &err);
FB_API_ERROR_EMIT(api, err, return FALSE);