summaryrefslogtreecommitdiff
path: root/src/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dispatch.c')
-rw-r--r--src/dispatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dispatch.c b/src/dispatch.c
index 5620c6a..69c0187 100644
--- a/src/dispatch.c
+++ b/src/dispatch.c
@@ -38,8 +38,10 @@ JsonObject *dispatch(trg_client * client, JsonNode * req, int *status)
serialized = trg_serialize(req);
json_node_free(req);
-
- g_printf("=>(outgoing)=> %s\n", serialized);
+#ifdef DEBUG
+ if (g_getenv("TRG_SHOW_OUTGOING") != NULL)
+ g_printf("=>(outgoing)=> %s\n", serialized);
+#endif
response = trg_http_perform(client, serialized);
g_free(serialized);