[jsonrpc-glib] input-stream: add debugging for gvariant messages
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jsonrpc-glib] input-stream: add debugging for gvariant messages
- Date: Wed, 25 Apr 2018 01:39:56 +0000 (UTC)
commit 784420f55f9a295233f12b5a1fbe73071195a2cd
Author: Christian Hergert <chergert redhat com>
Date: Tue Apr 24 18:40:32 2018 -0700
input-stream: add debugging for gvariant messages
src/jsonrpc-input-stream.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/jsonrpc-input-stream.c b/src/jsonrpc-input-stream.c
index b828985..a4b3d13 100644
--- a/src/jsonrpc-input-stream.c
+++ b/src/jsonrpc-input-stream.c
@@ -130,6 +130,12 @@ jsonrpc_input_stream_read_body_cb (GObject *object,
g_free,
state->buffer);
state->buffer = NULL;
+
+ if G_UNLIKELY (jsonrpc_input_stream_debug && state->use_gvariant)
+ {
+ g_autofree gchar *debugstr = g_variant_print (message, TRUE);
+ g_message ("<<< %s", debugstr);
+ }
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]